Commit 6374c3c3 authored by isstuev's avatar isstuev

skeleton fixes

parent 96d6d8fc
...@@ -31,14 +31,25 @@ const Deposits = () => { ...@@ -31,14 +31,25 @@ const Deposits = () => {
const text = (() => { const text = (() => {
if (countersQuery.isLoading) { if (countersQuery.isLoading) {
return <Skeleton w={{ base: '100%', lg: '320px' }} h="26px" mb={ 6 } mt={{ base: 0, lg: 6 }}/>; return (
<Skeleton
w={{ base: '100%', lg: '320px' }}
h="24px"
mb={{ base: 6, lg: isPaginationVisible ? 0 : 7 }}
mt={{ base: 0, lg: isPaginationVisible ? 0 : 7 }}
/>
);
} }
if (countersQuery.isError) { if (countersQuery.isError) {
return null; return null;
} }
return <Text mb={{ base: 6, lg: isPaginationVisible ? 0 : 6 }}>A total of { countersQuery.data.toLocaleString('en') } deposits found</Text>; return (
<Text mb={{ base: 6, lg: isPaginationVisible ? 0 : 6 }} lineHeight="32px">
A total of { countersQuery.data.toLocaleString('en') } deposits found
</Text>
);
})(); })();
const actionBar = ( const actionBar = (
......
...@@ -30,7 +30,14 @@ const OutputRoots = () => { ...@@ -30,7 +30,14 @@ const OutputRoots = () => {
const text = (() => { const text = (() => {
if (countersQuery.isLoading || isLoading) { if (countersQuery.isLoading || isLoading) {
return <Skeleton w={{ base: '100%', lg: '400px' }} h={{ base: '48px', lg: '26px' }} mb={{ base: 6, lg: 7 }} mt={{ base: 0, lg: 7 }}/>; return (
<Skeleton
w={{ base: '100%', lg: '400px' }}
h={{ base: '48px', lg: '24px' }}
mb={{ base: 6, lg: isPaginationVisible ? 0 : 7 }}
mt={{ base: 0, lg: isPaginationVisible ? 0 : 7 }}
/>
);
} }
if (countersQuery.isError || isError || data?.items.length === 0) { if (countersQuery.isError || isError || data?.items.length === 0) {
......
...@@ -31,7 +31,14 @@ const TxnBatches = () => { ...@@ -31,7 +31,14 @@ const TxnBatches = () => {
const text = (() => { const text = (() => {
if (countersQuery.isLoading || isLoading) { if (countersQuery.isLoading || isLoading) {
return <Skeleton w={{ base: '100%', lg: '400px' }} h={{ base: '48px', lg: '26px' }} mb={{ base: 6, lg: 7 }} mt={{ base: 0, lg: 7 }}/>; return (
<Skeleton
w={{ base: '100%', lg: '400px' }}
h={{ base: '48px', lg: '24px' }}
mb={{ base: 6, lg: isPaginationVisible ? 0 : 7 }}
mt={{ base: 0, lg: isPaginationVisible ? 0 : 7 }}
/>
);
} }
if (countersQuery.isError || isError || data.items.length === 0) { if (countersQuery.isError || isError || data.items.length === 0) {
......
...@@ -31,14 +31,25 @@ const Withdrawals = () => { ...@@ -31,14 +31,25 @@ const Withdrawals = () => {
const text = (() => { const text = (() => {
if (countersQuery.isLoading) { if (countersQuery.isLoading) {
return <Skeleton w={{ base: '100%', lg: '320px' }} h="26px" mb={ 6 } mt={{ base: 0, lg: 6 }}/>; return (
<Skeleton
w={{ base: '100%', lg: '320px' }}
h="24px"
mb={{ base: 6, lg: isPaginationVisible ? 0 : 7 }}
mt={{ base: 0, lg: isPaginationVisible ? 0 : 7 }}
/>
);
} }
if (countersQuery.isError) { if (countersQuery.isError) {
return null; return null;
} }
return <Text mb={{ base: 6, lg: isPaginationVisible ? 0 : 6 }}>A total of { countersQuery.data.toLocaleString('en') } withdrawals found</Text>; return (
<Text mb={{ base: 6, lg: isPaginationVisible ? 0 : 6 }} lineHeight="32px">
A total of { countersQuery.data.toLocaleString('en') } withdrawals found
</Text>
);
})(); })();
const actionBar = ( const actionBar = (
......
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