Compare commits

..

No commits in common. "abc1b07c6a515cb34c6cf4dd43b8d9a39da6b700" and "6e5af4a010f830fde89f773a22fff8d625769af4" have entirely different histories.

View File

@ -27,7 +27,7 @@ const CoinList = (): JSX.Element => {
const { data: globalData, isLoading: globalIsLoading, isSuccess: lobalSuccess } = useGetGlobalQuery(); const { data: globalData, isLoading: globalIsLoading, isSuccess: lobalSuccess } = useGetGlobalQuery();
return ( return (
<> <Box className="coin-list">
{isLoading || globalIsLoading && <div>Loading...</div>} {isLoading || globalIsLoading && <div>Loading...</div>}
{ {
globalData && globalData &&
@ -38,7 +38,6 @@ const CoinList = (): JSX.Element => {
} }
{ {
data && isSuccess && data && isSuccess &&
<Box className="coin-list">
<TableContainer style={{ marginTop: 20 }}> <TableContainer style={{ marginTop: 20 }}>
<Table size="small" aria-label="simple table"> <Table size="small" aria-label="simple table">
<TableHead> <TableHead>
@ -117,10 +116,9 @@ const CoinList = (): JSX.Element => {
</TableBody> </TableBody>
</Table> </Table>
</TableContainer> </TableContainer>
</Box>
} }
<Pager page={page} per_page={per_page}/> <Pager page={page} per_page={per_page}/>
</> </Box>
) )
} }