Skip to content

Commit

Permalink
center account links in purchase history table
Browse files Browse the repository at this point in the history
  • Loading branch information
cuteolaf committed Aug 15, 2024
1 parent 661dea7 commit ccf74b1
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions src/components/Tables/PurchaseHistoryTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
TablePagination,
TableRow,
Tooltip,
useTheme,
} from '@mui/material';
import { useState } from 'react';

Expand All @@ -32,6 +33,8 @@ interface PurchaseHistoryTableProps {
}

export const PurchaseHistoryTable = ({ data }: PurchaseHistoryTableProps) => {
const theme = useTheme();

const { network } = useNetwork();
const {
state: { symbol, decimals },
Expand Down Expand Up @@ -95,17 +98,22 @@ export const PurchaseHistoryTable = ({ data }: PurchaseHistoryTableProps) => {
</Link>
</StyledTableCell>
<StyledTableCell align='center'>
<Link
href={`${SUSBCAN_CORETIME_URL[network]}/account/${address}`}
target='_blank'
<Stack
justifyContent='center'
direction='row'
sx={{
cursor: 'pointer',
color: theme.palette.primary.main,
}}
onClick={() =>
window.open(
`${SUSBCAN_CORETIME_URL[network]}/account/${address}`,
'_blank'
)
}
>
<Address
value={address}
isCopy={true}
isShort={true}
size={24}
/>
</Link>
<Address value={address} isCopy isShort size={24} />
</Stack>
</StyledTableCell>
<StyledTableCell align='center'>{core}</StyledTableCell>
<StyledTableCell align='center'>
Expand Down

0 comments on commit ccf74b1

Please sign in to comment.