Commit a146c932 authored by Vignesh Mohankumar's avatar Vignesh Mohankumar Committed by GitHub

fix: update TokenTable loading row count (#4319)

parent 53cccef5
...@@ -138,17 +138,15 @@ function NoTokensState({ message }: { message: ReactNode }) { ...@@ -138,17 +138,15 @@ function NoTokensState({ message }: { message: ReactNode }) {
) )
} }
const LOADING_ROWS = Array.from({ length: 100 })
.fill(0)
.map((_item, index) => <LoadingRow key={index} />)
function LoadingTokenTable() { function LoadingTokenTable() {
return ( return (
<GridContainer> <GridContainer>
<HeaderRow /> <HeaderRow />
<TokenRowsContainer> <TokenRowsContainer>{LOADING_ROWS}</TokenRowsContainer>
{Array(10)
.fill(0)
.map((_item, index) => (
<LoadingRow key={index} />
))}
</TokenRowsContainer>
</GridContainer> </GridContainer>
) )
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment