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 (
<> <>
<ApiKeyTable { Boolean(data.length) && (
data={ data } <ApiKeyTable
onDeleteClick={ onDeleteClick } data={ data }
onEditClick={ onEditClick } onDeleteClick={ onDeleteClick }
limit={ DATA_LIMIT } onEditClick={ onEditClick }
/> limit={ DATA_LIMIT }
/>
) }
<HStack marginTop={ 8 } spacing={ 5 }> <HStack marginTop={ 8 } spacing={ 5 }>
<Button <Button
variant="primary" variant="primary"
......
...@@ -53,22 +53,22 @@ const WatchList: React.FC = () => { ...@@ -53,22 +53,22 @@ const WatchList: React.FC = () => {
</> </>
) } ) }
{ Boolean(watchlistData?.length) && ( { Boolean(watchlistData?.length) && (
<> <WatchlistTable
<WatchlistTable data={ watchlistData }
data={ watchlistData } onDeleteClick={ onDeleteClick }
onDeleteClick={ onDeleteClick } onEditClick={ onEditClick }
onEditClick={ onEditClick } />
/> ) }
<Box marginTop={ 8 }> { Boolean(watchlistData) && (
<Button <Box marginTop={ 8 }>
variant="primary" <Button
size="lg" variant="primary"
onClick={ addressModalProps.onOpen } size="lg"
> onClick={ addressModalProps.onOpen }
>
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