Skip to content

Commit

Permalink
fix: tvl table row cursor (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtiti authored Sep 10, 2024
1 parent 650ec31 commit 69e6438
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/components/ChainTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const ChainTable = ({ chains }: TableProps) => {
<STableBody>
{chains?.map((data, index) => {
return (
<STableBodyRow
<STableBodyRowLink
key={index}
onClick={() => handleChainNavigation(data.chainId)}
onKeyDown={(event) => {
Expand Down Expand Up @@ -96,7 +96,7 @@ export const ChainTable = ({ chains }: TableProps) => {
<STableCell sx={{ width: '10%' }}>{formatDataNumber(data.tvl, 0, true)}</STableCell>

<STableCell sx={{ width: '10%' }}>{data.chainType}</STableCell>
</STableBodyRow>
</STableBodyRowLink>
);
})}
</STableBody>
Expand Down Expand Up @@ -150,7 +150,17 @@ export const STableRow = styled(TableRow)(() => {
};
});

export const STableBodyRow = styled(TableRow)(({ theme }) => {
export const STableBodyRow = styled(TableRow)(() => {
const { currentTheme } = useCustomTheme();
return {
'&:not(:last-child)': {
border: currentTheme.border,
},
transition: currentTheme.transition,
};
});

export const STableBodyRowLink = styled(TableRow)(({ theme }) => {
const { currentTheme } = useCustomTheme();
return {
cursor: 'pointer',
Expand Down

0 comments on commit 69e6438

Please sign in to comment.