A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: theme not toggling
thecodrr5d77f7945858
diff --git a/apps/web/src/stores/theme-store.js b/apps/web/src/stores/theme-store.jsindex fade9013e..67c9495cd 100644--- a/apps/web/src/stores/theme-store.js+++ b/apps/web/src/stores/theme-store.js@@ -5,17 +5,17 @@ class ThemeStore extends BaseStore {theme = "light";accent = "#0560ff";- setTheme = theme => {- this.set(state => (state.theme = theme));+ setTheme = (theme) => {+ this.set((state) => (state.theme = theme));};toggleNightMode = () => {- const theme = this.theme;+ const theme = this.get().theme;this.setTheme(theme === "dark" ? "light" : "dark");};- setAccent = accent => {- this.set(state => (state.accent = accent));+ setAccent = (accent) => {+ this.set((state) => (state.accent = accent));};}