Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add participants table #4

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions src/components/NavBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import { Bag } from './Bag'
import Blur from './Blur'
import { ChainSelector } from './ChainSelector'
import { SearchBar } from './SearchBar'
import * as styles from './style.css'

const Nav = styled.nav`
Expand Down Expand Up @@ -57,9 +56,9 @@
const chainName = chainIdToBackendName(connectedChainId)

const isPoolActive = useIsPoolsPage()
const isNftPage = useIsNftPage()

Check warning on line 59 in src/components/NavBar/index.tsx

View workflow job for this annotation

GitHub Actions / lint

'isNftPage' is assigned a value but never used

const shouldDisableNFTRoutes = useDisableNFTRoutes()

Check warning on line 61 in src/components/NavBar/index.tsx

View workflow job for this annotation

GitHub Actions / lint

'shouldDisableNFTRoutes' is assigned a value but never used
const infoExplorePageEnabled = useInfoExplorePageEnabled()

return (
Expand Down Expand Up @@ -90,6 +89,9 @@
<MenuItem href="/pools" dataTestId="pool-nav-link" isActive={isPoolActive}>
<Trans>Pools</Trans>
</MenuItem>
<MenuItem href="/participants" dataTestId="pool-nav-link" isActive={pathname.startsWith('/participants')}>
<Trans>Participantes</Trans>
</MenuItem>
</Box>
{/* <Box marginY="4">
<MenuDropdown />
Expand Down Expand Up @@ -139,14 +141,10 @@
{...(isNavSearchInputVisible && {
display: 'flex',
})}
>
<SearchBar />
</Box>
></Box>
<Box className={styles.rightSideContainer}>
<Row gap="12">
<Box position="relative" display={isNavSearchInputVisible ? 'none' : { sm: 'flex' }}>
<SearchBar />
</Box>
<Box position="relative" display={isNavSearchInputVisible ? 'none' : { sm: 'flex' }}></Box>
{isNftPage && sellPageState !== ProfilePageStateType.LISTING && <Bag />}
{!isNftPage && (
<Box display={{ sm: 'none', lg: 'flex' }}>
Expand Down
Loading
Loading