Skip to content

Commit a65f11d

Browse files
committed
fixed multiple theme saving to server and shadow switch
1 parent 2d42dd0 commit a65f11d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

frontend/src/components/buttons/themeSwitch/ThemeSwitch.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,14 @@ const ThemeSwitch = forwardRef(({ name }, ref) => {
133133
<SimpleSwitch
134134
name="Arrows shadow"
135135
initialState={arrowShadow}
136-
onEnable={enableArrowShadow}
137-
onDisable={disableArrowShadow}
136+
onEnable={() => {
137+
enableArrowShadow();
138+
saveColorThemeFromContext();
139+
}}
140+
onDisable={() => {
141+
disableArrowShadow();
142+
saveColorThemeFromContext();
143+
}}
138144
/>
139145
</div>
140146
</div>

0 commit comments

Comments
 (0)