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

Fix snapshot cards spacing #1282

Merged
merged 1 commit into from
Feb 21, 2024
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
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
Loading