Skip to content

Commit

Permalink
Merge branch 'dev' into fix/tvl-table-row
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtiti authored Sep 10, 2024
2 parents 6d8c484 + 650ec31 commit d7d3aac
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/containers/ChainDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ export const ChainContainer = styled(Box)(({ theme }) => ({
gap: '4rem',
marginTop: '4rem',
marginBottom: '4rem',
minHeight: 'calc(100vh - 19rem)',
[theme.breakpoints.down('md')]: {
padding: '0 1rem',
minHeight: 'calc(100vh - 23rem)',
},
}));
3 changes: 0 additions & 3 deletions src/containers/Dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,10 @@ const DashboardContainer = styled('section')(({ theme }) => {

return {
width: '100%',
minHeight: 'calc(100vh - 19rem)',
...(isSearch && {
padding: '0 7rem',
minHeight: 'calc(100vh - 11rem)',
[theme.breakpoints.down('md')]: {
padding: '0 1rem',
minHeight: 'calc(100vh - 23rem)',
},
}),
};
Expand Down
2 changes: 0 additions & 2 deletions src/containers/Landing/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ const LandingContainer = styled('main')(({ theme }) => ({
gap: '4rem',
marginTop: '4rem',
marginBottom: '4rem',
minHeight: 'calc(100vh - 19rem)',
[theme.breakpoints.down('md')]: {
padding: '0 1rem',
minHeight: 'calc(100vh - 23rem)',
},
}));
26 changes: 26 additions & 0 deletions src/containers/SearchPage/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { styled } from '@mui/material/styles';

import { Dashboard } from '~/containers';

export const SearchPage = () => {
return (
<SearchContainer>
<Dashboard />
</SearchContainer>
);
};

const SearchContainer = styled('main')(({ theme }) => ({
display: 'flex',
flexDirection: 'column',
padding: '0 7rem',
alignItems: 'center',
justifyContent: 'center',
width: '100%',
minHeight: 'calc(100vh - 15rem)',
marginBottom: '4rem',
[theme.breakpoints.down('md')]: {
padding: '0 1rem',
minHeight: 'calc(100vh - 23rem)',
},
}));
2 changes: 0 additions & 2 deletions src/containers/Tokens/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ const TokensContainer = styled('main')(({ theme }) => ({
gap: '4rem',
marginTop: '4rem',
marginBottom: '4rem',
minHeight: 'calc(100vh - 19rem)',
[theme.breakpoints.down('md')]: {
padding: '0 1rem',
minHeight: 'calc(100vh - 23rem)',
},
}));
1 change: 1 addition & 0 deletions src/containers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ export * from './ChainDetail/ChainDescription';
export * from './ChainDetail/ChainMetadata';
export * from './Tokens';
export * from './ErrorContainer';
export * from './SearchPage';
4 changes: 2 additions & 2 deletions src/pages/search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { GetStaticProps } from 'next';
import { useTranslation } from 'next-i18next';

import { CustomHead } from '~/components';
import { Dashboard } from '~/containers';
import { SearchPage } from '~/containers';
import { getConfig } from '~/config';
import { useSearchContext } from '~/hooks';

Expand All @@ -24,7 +24,7 @@ const Search = () => {
return (
<>
<CustomHead title={t('HEADER.search')} />
<Dashboard />
<SearchPage />
</>
);
};
Expand Down

0 comments on commit d7d3aac

Please sign in to comment.