Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
irisdv committed Jun 12, 2024
1 parent 229a54f commit 6b22e04
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 7 deletions.
12 changes: 10 additions & 2 deletions app/components/ethButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,19 @@ import styles from "../styles/components/ethButton.module.css";

type EthButtonProps = {
onClick: () => void;
isFinished?: boolean;
};

const EthButton: FunctionComponent<EthButtonProps> = ({ onClick }) => {
const EthButton: FunctionComponent<EthButtonProps> = ({
onClick,
isFinished,
}) => {
const click = () => {
if (isFinished) return;
onClick();
};
return (
<div className={styles.base} onClick={onClick}>
<div className={styles.base} onClick={click}>
<div className={styles.innerCircle}>
<div className={styles.content}>
<img src="/visuals/ethereumIcon.svg" alt="ethereum icon" />
Expand Down
6 changes: 2 additions & 4 deletions app/components/recoverTokenModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { Modal } from "@mui/material";
import styles from "../styles/components/welcomeModal.module.css";
import modalStyles from "../styles/components/modal.module.css";
import Button from "./button";
import { NetworkType } from "@/constants/types";
import WalletIcon from "./iconComponents/walletIcon";
import {
getArgentIcon,
getArgentWebsite,
Expand Down Expand Up @@ -45,8 +43,8 @@ const RecoverTokenModal: FunctionComponent<RecoverTokenModalProps> = ({
const modalDescription =
step === 0 ? (
<>
You are eligible to play again with a starknet wallet, but first you'll
need to regenerate a signature with your ethereum wallet.
You are eligible to play again with a starknet wallet, but first
you&apos;ll need to regenerate a signature with your ethereum wallet.
</>
) : (
<>
Expand Down
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ export default function Home() {
<Countdown timestamp={countdownTimestamp} />
</div>
<div className={styles.ethBtnContainer}>
<EthButton onClick={clickEthButton} />
<EthButton onClick={clickEthButton} isFinished={isFinished} />
</div>
</div>
</div>
Expand Down
14 changes: 14 additions & 0 deletions app/styles/components/ethButton.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@
box-shadow: 1.73px -1.73px 2.3px 0px #000000bf inset;
position: relative;
display: flex;
transition: box-shadow 0.4s;

&:hover {
cursor: pointer;
box-shadow: inset 0 0 35px 0px rgba(0, 0, 0, 0.15),
inset 0 2px 1px 1px rgba(255, 255, 255, 0),
1px 1px 15px 2px rgba(154, 137, 164, 0.1);
}

&:active {
box-shadow: inset 0 0 10px 2px rgba(0, 0, 0, 0.15),
1px 1px 15px 2px rgba(154, 137, 164, 0.1);
transition: box-shadow 0.3s;
}
}

.innerCircle {
Expand Down

0 comments on commit 6b22e04

Please sign in to comment.