Skip to content

Commit

Permalink
Txn history table update
Browse files Browse the repository at this point in the history
  • Loading branch information
matejos committed Jan 9, 2024
1 parent ef1fb32 commit b3d9761
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Grid from "@mui/material/Unstable_Grid2/Grid2";
function TransactionItem({ tx }: { tx: Transaction }) {
return (
<>
<Grid xs={4} sx={{ display: "flex", justifyContent: "start" }}>
<Grid xs={2} sx={{ display: "flex", justifyContent: "start" }}>
<Typography
variant="caption"
sx={{
Expand All @@ -28,12 +28,14 @@ function TransactionItem({ tx }: { tx: Transaction }) {
{tx.status}
</Typography>
</Grid>
<Grid xs={4} sx={{ display: "flex", justifyContent: "center" }}>
<Grid xs={2} sx={{ display: "flex", justifyContent: "center" }}>
<Typography>
{tx.direction === WrappingDirection.WRAP ? "Wrapped" : "Unwrapped"}{" "}
{formatMina(BigInt(tx.amount))} MINA
{tx.direction === WrappingDirection.WRAP ? "Wrap" : "Unwrap"}{" "}
</Typography>
</Grid>
<Grid xs={4} sx={{ display: "flex", justifyContent: "end" }}>
<Typography>{formatMina(BigInt(tx.amount))} MINA</Typography>
</Grid>
<Grid xs={4} sx={{ display: "flex", justifyContent: "end" }}>
<Link
href={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default function useConnectWallet() {
}
try {
setAccount(undefined);
setUserPublicKey(undefined);
const publicKeyBase58: string = (await mina.requestAccounts())[0];
const publicKey = PublicKey.fromBase58(publicKeyBase58);
setUserPublicKey(publicKey);
Expand Down

0 comments on commit b3d9761

Please sign in to comment.