mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 10:27:49 +00:00
Merge pull request #165 from BEDOLAGA-DEV/fix/theme-save-button
fix: кнопка сохранения ручной темы не появлялась
This commit is contained in:
@@ -85,9 +85,9 @@ export function ThemeTab() {
|
|||||||
colorsEqual(savedColorsRef.current, DEFAULT_THEME_COLORS)
|
colorsEqual(savedColorsRef.current, DEFAULT_THEME_COLORS)
|
||||||
) {
|
) {
|
||||||
setDraftColors(colors);
|
setDraftColors(colors);
|
||||||
}
|
|
||||||
savedColorsRef.current = colors;
|
savedColorsRef.current = colors;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}, [serverColors]);
|
}, [serverColors]);
|
||||||
|
|
||||||
const hasUnsavedChanges = !colorsEqual(draftColors, savedColorsRef.current);
|
const hasUnsavedChanges = !colorsEqual(draftColors, savedColorsRef.current);
|
||||||
|
|||||||
Reference in New Issue
Block a user