From 841c484159497deb0a7f0d6dd6518c3be1e22d6f Mon Sep 17 00:00:00 2001 From: Sergej Date: Fri, 19 Apr 2024 20:08:38 +0200 Subject: [PATCH] fix --- src/components/Sidebar/index.module.scss | 14 ++------------ src/contexts/apis/CoretimeApi/index.tsx | 2 +- src/contexts/apis/RelayApi/index.tsx | 2 +- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/src/components/Sidebar/index.module.scss b/src/components/Sidebar/index.module.scss index bc0b8c21..b333bc77 100644 --- a/src/components/Sidebar/index.module.scss +++ b/src/components/Sidebar/index.module.scss @@ -17,7 +17,7 @@ height: 3rem; } -.logo > img { +.logo>img { width: 100%; height: 100%; object-fit: contain; @@ -35,20 +35,10 @@ flex-direction: column; gap: 0.5rem; } - position: fixed; - bottom: 8rem; - display: flex; - flex-direction: column; - gap: 0.5rem; -} .networkSelector { - position: fixed; - left: 1rem; - bottom: 1rem; display: flex; - flex-direction: column; - gap: 0.5rem; + padding: .5rem; } .menuIcon { diff --git a/src/contexts/apis/CoretimeApi/index.tsx b/src/contexts/apis/CoretimeApi/index.tsx index 4bec50bf..7289ddf3 100644 --- a/src/contexts/apis/CoretimeApi/index.tsx +++ b/src/contexts/apis/CoretimeApi/index.tsx @@ -64,7 +64,7 @@ const CoretimeApiContextProvider = (props: any) => { const disconnectCoretime = () => disconnect(state); useEffect(() => { - if (!network || state.socket == getUrl(network)) return; + if (state.socket == getUrl(network)) return; const updateNetwork = network != '' && state.socket != getUrl(network); connect(state, getUrl(network), dispatch, updateNetwork, types); }, [network, state]); diff --git a/src/contexts/apis/RelayApi/index.tsx b/src/contexts/apis/RelayApi/index.tsx index 140c1579..7fbb2c4a 100644 --- a/src/contexts/apis/RelayApi/index.tsx +++ b/src/contexts/apis/RelayApi/index.tsx @@ -53,7 +53,7 @@ const RelayApiContextProvider = (props: any) => { }; useEffect(() => { - if (!network || state.socket == getUrl(network)) return; + if (state.socket == getUrl(network)) return; const updateNetwork = network != '' && state.socket != getUrl(network); connect(state, getUrl(network), dispatch, updateNetwork); }, [network, state]);