fix(web): get_untracked for config color

This commit is contained in:
əlemi 2024-05-23 16:16:12 +02:00
parent a899c48127
commit 06413322a3
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -7,7 +7,8 @@ pub fn ConfigPage(setter: WriteSignal<crate::Config>) -> impl IntoView {
let (color, set_color) = leptos_use::use_css_var("--accent");
let (_color_rgb, set_color_rgb) = leptos_use::use_css_var("--accent-rgb");
let previous_color = config.get().accent_color;
// TODO should this be responsive? idk
let previous_color = config.get_untracked().accent_color;
set_color_rgb.set(parse_hex(&previous_color));
set_color.set(previous_color);