Web:Common:Store: remove change theme method from settings store

This commit is contained in:
Timofey Boyko 2022-04-18 10:59:35 +03:00
parent a16a77d873
commit 4d65b5fcc8

View File

@ -428,16 +428,6 @@ class SettingsStore {
this.buildVersionInfo.documentServer = "6.4.1";
};
changeTheme = () => {
const currentTheme =
JSON.stringify(this.theme) === JSON.stringify(Base) ? Dark : Base;
localStorage.setItem(
"theme",
JSON.stringify(this.theme) === JSON.stringify(Base) ? "Dark" : "Base"
);
this.theme = currentTheme;
};
setTheme = (theme) => {
this.theme = themes[theme];
localStorage.setItem("theme", theme);