mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
fix address intrenal txs
This commit is contained in:
@@ -3,7 +3,6 @@ const zIndices = {
|
||||
auto: 'auto',
|
||||
base: 0,
|
||||
docked: 10,
|
||||
overDocked: 11,
|
||||
tooltip: 900,
|
||||
dropdown: 1000,
|
||||
sticky: 1100,
|
||||
|
||||
@@ -43,29 +43,29 @@ const AddressInternalTxs = ({ scrollRef }: {scrollRef?: React.RefObject<HTMLDivE
|
||||
onFilterChange({ filter: newVal });
|
||||
}, [ onFilterChange ]);
|
||||
|
||||
if (isLoading) {
|
||||
const content = (() => {
|
||||
if (isError) {
|
||||
return <DataFetchAlert/>;
|
||||
}
|
||||
|
||||
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.` }/>;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<Show below="lg" ssr={ false }><AddressIntTxsSkeletonMobile/></Show>
|
||||
<Hide below="lg" ssr={ false }><AddressIntTxsSkeletonDesktop/></Hide>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
if (isError) {
|
||||
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 }>
|
||||
<AddressIntTxsList data={ data.items } currentAddress={ hash }/>
|
||||
@@ -75,7 +75,7 @@ const AddressInternalTxs = ({ scrollRef }: {scrollRef?: React.RefObject<HTMLDivE
|
||||
</Hide>
|
||||
</>
|
||||
);
|
||||
}
|
||||
})();
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -36,7 +36,7 @@ const TheadSticky = ({ top, children, ...restProps }: Props) => {
|
||||
top: `${ top }px` || 0,
|
||||
backgroundColor: useColorModeValue('white', 'black'),
|
||||
boxShadow: isSticky ? 'md' : 'none',
|
||||
zIndex: 'overDocked',
|
||||
zIndex: '1',
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user