Skip to content

Commit

Permalink
Fix snapshot cards spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
buberdds committed Feb 21, 2024
1 parent cec93f7 commit 6036670
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
1 change: 1 addition & 0 deletions .changelog/1282.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix snapshot cards spacing
5 changes: 1 addition & 4 deletions src/app/pages/TokenDashboardPage/TokenSnapshot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,15 @@ import Grid from '@mui/material/Grid'
import Typography from '@mui/material/Typography'
import { useScreenSize } from '../../hooks/useScreensize'
import { useTheme } from '@mui/material/styles'
import { styled } from '@mui/material/styles'
import { useTranslation } from 'react-i18next'
import { AppendMobileSearch } from '../../components/AppendMobileSearch'
import { TokenSupplyCard } from './TokenSupplyCard'
import { TokenHoldersCountCard } from './TokenHoldersCountCard'
import { TokenTypeCard } from './TokenTypeCard'
import { TokenTotalTransactionsCard } from './TokenTotalTransactionsCard'
import { SearchScope } from '../../../types/searchScope'
import { StyledGrid } from '../../components/Snapshots/Snapshot'

const StyledGrid = styled(Grid)(() => ({
display: 'flex',
}))
export const TokenSnapshot: FC<{ scope: SearchScope; address: string }> = ({ scope, address }) => {
const { t } = useTranslation()

Expand Down
6 changes: 1 addition & 5 deletions src/app/pages/ValidatorDetailsPage/ValidatorSnapshot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import Grid from '@mui/material/Grid'
import Typography from '@mui/material/Typography'
import { useScreenSize } from '../../hooks/useScreensize'
import { useTheme } from '@mui/material/styles'
import { styled } from '@mui/material/styles'
import { useTranslation } from 'react-i18next'
import { AppendMobileSearch } from '../../components/AppendMobileSearch'
import { ExternalLinkCard } from './ExternalLinkCard'
Expand All @@ -13,10 +12,7 @@ import { UptimeCard } from './UptimeCard'
import { VotingPowerCard } from './VotingPowerCard'
import { BalanceDistributionCard } from './BalanceDistributionCard'
import { Validator } from '../../../oasis-nexus/api'

const StyledGrid = styled(Grid)(() => ({
display: 'flex',
}))
import { StyledGrid } from '../../components/Snapshots/Snapshot'

type ValidatorSnapshotProps = {
scope: SearchScope
Expand Down

0 comments on commit 6036670

Please sign in to comment.