Skip to content

Commit

Permalink
Cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
matejos committed Jan 9, 2024
1 parent b3d9761 commit b14038b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button } from "@mui/material";
import { Button, Typography } from "@mui/material";
import { useAppStore } from "../configs/store";
import useConnectWallet from "../hooks/useConnectWallet";
import { auroLink } from "../utils/constants";
Expand All @@ -12,7 +12,15 @@ export default function ConnectWallet() {
Install wallet
</Button>
) : userPublicKey ? (
<Button>{formatAddress(userPublicKey.toBase58())}</Button>
<Typography
variant="button"
sx={(theme) => ({
color: theme.palette.primary.main,
textTransform: "none",
})}
>
Connected: {formatAddress(userPublicKey.toBase58())}
</Typography>
) : (
<Button onClick={connectWallet}>Connect wallet</Button>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AppBar, Button, Container, Stack, Toolbar } from "@mui/material";
import { AppBar, Container, Stack, Toolbar, Typography } from "@mui/material";
import ConnectWallet from "./ConnectWallet";

export default function Navbar() {
Expand All @@ -7,7 +7,12 @@ export default function Navbar() {
<AppBar sx={{ bgcolor: "#030909" }}>
<Container>
<Toolbar sx={{ gap: 2 }}>
<Button variant="text">Zeko bridge</Button>
<Typography
variant="button"
sx={(theme) => ({ color: theme.palette.primary.main })}
>
Zeko bridge
</Typography>
<Stack sx={{ flexGrow: 1 }} />
<ConnectWallet />
</Toolbar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function TransactionItem({ tx }: { tx: Transaction }) {
<Typography
variant="caption"
sx={{
alignSelf: "center",
color:
tx.status === TransactionStatus.COMPLETE
? "green"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const formatAddress = (
address: string | undefined
): string | undefined => {
if (address === undefined) return undefined;
return `${address.substring(0, 8)}...${address.substring(
address.length - 4
return `${address.substring(0, 10)}...${address.substring(
address.length - 10
)}`;
};

0 comments on commit b14038b

Please sign in to comment.