From 92ce055dd74d46a5f7db27116df4d98625da3d81 Mon Sep 17 00:00:00 2001 From: hippoz <10706925-hippoz@users.noreply.gitlab.com> Date: Thu, 28 Apr 2022 18:49:29 +0300 Subject: [PATCH] frontend: cleanup stores exports --- frontend/src/stores.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/frontend/src/stores.js b/frontend/src/stores.js index d9937b1..06ebe54 100644 --- a/frontend/src/stores.js +++ b/frontend/src/stores.js @@ -34,11 +34,6 @@ class Store { } } -export const selectedChannel = new Store({ id: -1, name: "none", creator_id: -1 }); -export const showSidebar = new Store(false); -export const showChannelView = new Store(true); -export const smallViewport = new Store(false); - class ChannelsStore extends Store { constructor() { super(gateway.channels || []); @@ -290,6 +285,10 @@ class OverlayStore extends Store { } } +export const selectedChannel = new Store({ id: -1, name: "none", creator_id: -1 }); +export const showSidebar = new Store(false); +export const showChannelView = new Store(true); +export const smallViewport = new Store(false); export const channels = new ChannelsStore(); export const gatewayStatus = new GatewayStatusStore(); export const messagesStoreProvider = new MessagesStoreProvider();