diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-11-05 19:25:20 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-11-05 19:26:28 -0500 |
| commit | fc73108b07e61ab0159ada120f2fb60c430b1d4c (patch) | |
| tree | 4dfb4c5ec52b54f1991532449cbdbd5bb0876835 /ui/lib/store.js | |
| parent | 2f67205b83009c874f4254a4789b1945668b3056 (diff) | |
Move `showMenu` out of globals and into page state.
I generally don't love globals, and the scope of this global is pretty narrow. Let's use the context hierarchy for this, instead.
(Kit mentioned that it might be possible to use CSS variables for this.)
Diffstat (limited to 'ui/lib/store.js')
| -rw-r--r-- | ui/lib/store.js | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/ui/lib/store.js b/ui/lib/store.js index bdd3e3b..ae17ffa 100644 --- a/ui/lib/store.js +++ b/ui/lib/store.js @@ -3,7 +3,6 @@ import { Channels } from '$lib/store/channels'; import { Messages } from '$lib/store/messages'; import { Logins } from '$lib/store/logins'; -export const showMenu = writable(false); export const currentUser = writable(null); export const logins = writable(new Logins()); export const channelsList = writable(new Channels()); |
