Commit 3fea5ac2 authored by tom's avatar tom

fix address intrenal txs

parent 772ad9ba
...@@ -3,7 +3,6 @@ const zIndices = { ...@@ -3,7 +3,6 @@ const zIndices = {
auto: 'auto', auto: 'auto',
base: 0, base: 0,
docked: 10, docked: 10,
overDocked: 11,
tooltip: 900, tooltip: 900,
dropdown: 1000, dropdown: 1000,
sticky: 1100, sticky: 1100,
......
...@@ -43,29 +43,29 @@ const AddressInternalTxs = ({ scrollRef }: {scrollRef?: React.RefObject<HTMLDivE ...@@ -43,29 +43,29 @@ const AddressInternalTxs = ({ scrollRef }: {scrollRef?: React.RefObject<HTMLDivE
onFilterChange({ filter: newVal }); onFilterChange({ filter: newVal });
}, [ onFilterChange ]); }, [ onFilterChange ]);
if (isLoading) { const content = (() => {
return ( if (isError) {
<> return <DataFetchAlert/>;
<Show below="lg" ssr={ false }><AddressIntTxsSkeletonMobile/></Show> }
<Hide below="lg" ssr={ false }><AddressIntTxsSkeletonDesktop/></Hide>
</> if (isLoading) {
); return (
} <>
<Show below="lg" ssr={ false }><AddressIntTxsSkeletonMobile/></Show>
<Hide below="lg" ssr={ false }><AddressIntTxsSkeletonDesktop/></Hide>
</>
);
}
if (data.items.length === 0 && !filterValue) {
return <Text as="span">There are no internal transactions for this address.</Text>;
}
if (data.items.length === 0) {
return <EmptySearchResult text={ `Couldn${ apos }t find any transaction that matches your query.` }/>;
}
if (isError) { return (
return <DataFetchAlert/>;
}
if (data.items.length === 0 && !filterValue) {
return <Text as="span">There are no internal transactions for this address.</Text>;
}
let content;
if (data.items.length === 0) {
content = <EmptySearchResult text={ `Couldn${ apos }t find any transaction that matches your query.` }/>;
} else {
content = (
<> <>
<Show below="lg" ssr={ false }> <Show below="lg" ssr={ false }>
<AddressIntTxsList data={ data.items } currentAddress={ hash }/> <AddressIntTxsList data={ data.items } currentAddress={ hash }/>
...@@ -75,7 +75,7 @@ const AddressInternalTxs = ({ scrollRef }: {scrollRef?: React.RefObject<HTMLDivE ...@@ -75,7 +75,7 @@ const AddressInternalTxs = ({ scrollRef }: {scrollRef?: React.RefObject<HTMLDivE
</Hide> </Hide>
</> </>
); );
} })();
return ( return (
<> <>
......
...@@ -36,7 +36,7 @@ const TheadSticky = ({ top, children, ...restProps }: Props) => { ...@@ -36,7 +36,7 @@ const TheadSticky = ({ top, children, ...restProps }: Props) => {
top: `${ top }px` || 0, top: `${ top }px` || 0,
backgroundColor: useColorModeValue('white', 'black'), backgroundColor: useColorModeValue('white', 'black'),
boxShadow: isSticky ? 'md' : 'none', boxShadow: isSticky ? 'md' : 'none',
zIndex: 'overDocked', zIndex: '1',
}; };
return ( return (
......
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