forked from alemi/upub
fix(web): get_untracked for config color
This commit is contained in:
parent
a899c48127
commit
06413322a3
1 changed files with 2 additions and 1 deletions
|
@ -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, set_color) = leptos_use::use_css_var("--accent");
|
||||||
let (_color_rgb, set_color_rgb) = leptos_use::use_css_var("--accent-rgb");
|
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_rgb.set(parse_hex(&previous_color));
|
||||||
set_color.set(previous_color);
|
set_color.set(previous_color);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue