chore: upgrade deps

This commit is contained in:
Mo
2022-03-21 12:13:10 -05:00
parent bd9a6e2ae5
commit cd243f39c6
21 changed files with 214 additions and 271 deletions

View File

@@ -218,9 +218,9 @@ export const QuickSettingsMenu: FunctionComponent<MenuProps> = observer(
const toggleComponent = (component: SNComponent) => {
if (component.isTheme()) {
application.toggleTheme(component);
application.mutator.toggleTheme(component);
} else {
application.toggleComponent(component);
application.mutator.toggleComponent(component);
}
};
@@ -265,7 +265,7 @@ export const QuickSettingsMenu: FunctionComponent<MenuProps> = observer(
const activeTheme = themes
.map((item) => item.component)
.find((theme) => theme?.active && !theme.isLayerable());
if (activeTheme) application.toggleTheme(activeTheme);
if (activeTheme) application.mutator.toggleTheme(activeTheme);
};
return (

View File

@@ -44,7 +44,7 @@ export const ThemesMenuButton: FunctionComponent<Props> = ({
item.component.isLayerable() || !item.component.active;
if (themeIsLayerableOrNotActive) {
application.toggleTheme(item.component);
application.mutator.toggleTheme(item.component);
}
} else {
premiumModal.activate(`${item.name} theme`);