Skip to content

Commit

Permalink
Updates for ConnectButton
Browse files Browse the repository at this point in the history
- Ad comment about tooltip
- Add different style when an account is not defined
  • Loading branch information
kkosiorowska committed Nov 17, 2023
1 parent 10715fd commit 647f359
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dapp/src/components/Navbar/ConnectWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ function ConnectButton({
account,
requestAccount,
}: ConnectButtonsProps) {
const styles = !account ? { color: "error", borderColor: "error" } : undefined
return (
<Button
variant="outline"
sx={styles}
leftIcon={<Image src={leftIcon} />}
// TODO: Add a tooltip here
rightIcon={!account ? <Image src={rightIcon} /> : undefined}
onClick={requestAccount}
>
Expand Down
1 change: 1 addition & 0 deletions dapp/src/theme/utils/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export const colors = {
white: "#FFF",
black: "#000",
purple: "#7D00FF",
error: "#F00",
grey: {
50: "rgba(255, 255, 255, 0.50)",
80: "rgba(255, 255, 255, 0.80)",
Expand Down

0 comments on commit 647f359

Please sign in to comment.