pl-fe: fix reset theme button behavior
Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -1,5 +1,4 @@
|
|||||||
!-- IMPORTANT: remember to remove this flag immediately on july 1st -->
|
# pl-fe
|
||||||
# pl-fe 🏳️🌈
|
|
||||||
|
|
||||||
[](https://github.com/mkljczk/pl-fe)
|
[](https://github.com/mkljczk/pl-fe)
|
||||||
[](https://github.com/mkljczk/pl-fe?tab=AGPL-3.0-1-ov-file#readme)
|
[](https://github.com/mkljczk/pl-fe?tab=AGPL-3.0-1-ov-file#readme)
|
||||||
|
|||||||
@ -149,7 +149,7 @@ const Preferences = () => {
|
|||||||
|
|
||||||
const onThemeReset = () => {
|
const onThemeReset = () => {
|
||||||
dispatch(changeSetting(['themeMode'], plFeConfig.defaultSettings.themeMode, { save: false }));
|
dispatch(changeSetting(['themeMode'], plFeConfig.defaultSettings.themeMode, { save: false }));
|
||||||
dispatch(changeSetting(['theme', 'brandColor'], undefined, { showAlert: true }));
|
dispatch(changeSetting(['theme'], undefined, { showAlert: true }));
|
||||||
};
|
};
|
||||||
|
|
||||||
const displayMediaOptions = React.useMemo(() => ({
|
const displayMediaOptions = React.useMemo(() => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user