Skip to content

Commit

Permalink
Merge pull request #11 from rarimo/fixes-v2
Browse files Browse the repository at this point in the history
fix sidebar
  • Loading branch information
WhiteNik16 authored Dec 8, 2023
2 parents c0f230f + b05f0f3 commit 94e865a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { FC, HTMLAttributes, useEffect, useMemo, useState } from 'react'
import { useLocation } from 'react-router-dom'
import { ToastContainer } from 'react-toastify'
import { useWindowSize } from 'react-use'

import { AppNavbar, Loader, MobileDeviceMessage } from '@/common'
import { useMetamaskZkpSnapContext, useWeb3Context } from '@/contexts'
import { RoutesPaths } from '@/enums'
import { bus, BUS_EVENTS, ErrorHandler, isMobile } from '@/helpers'
import { useNotification, useViewportSizes } from '@/hooks'

Expand All @@ -16,7 +18,7 @@ export const App: FC<HTMLAttributes<HTMLDivElement>> = ({ children }) => {
useMetamaskZkpSnapContext()
const { showToast } = useNotification()
const { width } = useWindowSize()

const { pathname } = useLocation()
const isDeviceMobile = useMemo(() => {
if (width <= 1280) {
return isMobile()
Expand Down Expand Up @@ -79,7 +81,9 @@ export const App: FC<HTMLAttributes<HTMLDivElement>> = ({ children }) => {
<MobileDeviceMessage />
) : (
<>
{provider?.isConnected && <AppNavbar className='app__navbar' />}
{pathname !== RoutesPaths.SignIn && (
<AppNavbar className='app__navbar' />
)}
<div className='app__main'>
{isAppInitialized ? children : <Loader />}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/SignInPage/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}

&:after {
background: url("/imgs/cells-bg.png") no-repeat top center / contain;
background: url("/imgs/cells-bg.png") repeat top center / contain;
content: "";
pointer-events: none;
position: fixed;
Expand Down

0 comments on commit 94e865a

Please sign in to comment.