Commit 8963257c authored by tom's avatar tom

fix table layout

parent 1d4c80b4
......@@ -19,7 +19,7 @@ const AddressSnippet = ({ address, subtitle }: Props) => {
<Address>
<AddressIcon address={ address }/>
<AddressLink type="address" hash={ address.hash } fontWeight="600" ml={ 2 }/>
<CopyToClipboard text={ address.hash } ml={ 1 }/>
<CopyToClipboard text={ address.hash } ml={ 3 }/>
</Address>
{ subtitle && <Text fontSize="sm" variant="secondary" mt={ 0.5 } ml={ 8 }>{ subtitle }</Text> }
</Box>
......
......@@ -18,8 +18,8 @@ const VerifiedAddressesTable = ({ data, applications, onItemEdit, onItemAdd }: P
<Thead>
<Tr>
<Th>Address</Th>
<Th w="232px">Token info</Th>
<Th w="94px"></Th>
<Th w="168px" pr={ 1 }>Token info</Th>
<Th w="36px" pl="0"></Th>
<Th w="160px">Request status</Th>
<Th w="150px">Date</Th>
</Tr>
......
......@@ -44,10 +44,10 @@ const VerifiedAddressesTableItem = ({ item, application, onAdd, onEdit }: Props)
<Td>
<AddressSnippet address={{ hash: item.contractAddress, is_contract: true, implementation_name: null }}/>
</Td>
<Td fontSize="sm" verticalAlign="middle">
<Td fontSize="sm" verticalAlign="middle" pr={ 1 }>
{ tokenInfo }
</Td>
<Td>
<Td pl="0">
{ item.metadata.tokenName && application ? (
<Tooltip label="Edit">
<IconButton
......@@ -63,7 +63,7 @@ const VerifiedAddressesTableItem = ({ item, application, onAdd, onEdit }: Props)
) : null }
</Td>
<Td fontSize="sm"><VerifiedAddressesStatus status={ item.metadata.tokenName ? application?.status : undefined }/></Td>
<Td fontSize="sm" color="text_secondary">{ item.metadata.tokenName ? dayjs(application?.updatedAt).format('MMM DD, YYYY') : null }</Td>
<Td fontSize="sm" color="text_secondary">{ item.metadata.tokenName && application ? dayjs(application.updatedAt).format('MMM DD, YYYY') : null }</Td>
</Tr>
);
};
......
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