Commit 1809cd02 authored by isstuev's avatar isstuev

apikey and watchlist fixes

parent e830a617
...@@ -62,12 +62,14 @@ const ApiKeysPage: React.FC = () => { ...@@ -62,12 +62,14 @@ const ApiKeysPage: React.FC = () => {
const canAdd = data.length < DATA_LIMIT; const canAdd = data.length < DATA_LIMIT;
return ( return (
<> <>
{ Boolean(data.length) && (
<ApiKeyTable <ApiKeyTable
data={ data } data={ data }
onDeleteClick={ onDeleteClick } onDeleteClick={ onDeleteClick }
onEditClick={ onEditClick } onEditClick={ onEditClick }
limit={ DATA_LIMIT } limit={ DATA_LIMIT }
/> />
) }
<HStack marginTop={ 8 } spacing={ 5 }> <HStack marginTop={ 8 } spacing={ 5 }>
<Button <Button
variant="primary" variant="primary"
......
...@@ -53,12 +53,13 @@ const WatchList: React.FC = () => { ...@@ -53,12 +53,13 @@ const WatchList: React.FC = () => {
</> </>
) } ) }
{ Boolean(watchlistData?.length) && ( { Boolean(watchlistData?.length) && (
<>
<WatchlistTable <WatchlistTable
data={ watchlistData } data={ watchlistData }
onDeleteClick={ onDeleteClick } onDeleteClick={ onDeleteClick }
onEditClick={ onEditClick } onEditClick={ onEditClick }
/> />
) }
{ Boolean(watchlistData) && (
<Box marginTop={ 8 }> <Box marginTop={ 8 }>
<Button <Button
variant="primary" variant="primary"
...@@ -68,7 +69,6 @@ const WatchList: React.FC = () => { ...@@ -68,7 +69,6 @@ const WatchList: React.FC = () => {
Add address Add address
</Button> </Button>
</Box> </Box>
</>
) } ) }
</Box> </Box>
<AddressModal { ...addressModalProps } onClose={ onAddressModalClose } data={ addressModalData }/> <AddressModal { ...addressModalProps } onClose={ onAddressModalClose } data={ addressModalData }/>
......
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