-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new gas fees notif + modal + whitelist form link
- Loading branch information
Showing
10 changed files
with
212 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
apps/web/src/app/(routes)/bridge/_components/GasRefundInfoModal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
"use client"; | ||
|
||
import { | ||
Button, | ||
Dialog, | ||
DialogContent, | ||
DialogTrigger, | ||
Typography, | ||
} from "design-system"; | ||
import { useState } from "react"; | ||
|
||
export default function GasRefundInfoModal() { | ||
const [open, setOpen] = useState(false); | ||
return ( | ||
<Dialog onOpenChange={setOpen} open={open}> | ||
<DialogTrigger onClick={() => setOpen(true)}> | ||
<b className="underline">More</b> | ||
</DialogTrigger> | ||
<DialogContent className="flex max-w-md flex-col gap-6"> | ||
<Typography | ||
className="mt-12 text-center" | ||
component="h3" | ||
variant="heading_light_m" | ||
> | ||
How do gas fee | ||
<br /> | ||
refunds work? | ||
</Typography> | ||
<Typography component="p" variant="body_text_18"> | ||
The first <b>200 holders</b> who bridge Everai to Starknet are | ||
eligible for refunds. | ||
<br /> | ||
<br /> Each of these holders can receive a refund of up to <b>$40</b>. | ||
<br /> | ||
<br /> | ||
The refund will be made in <b>STRK</b> directly to your Starknet | ||
wallet. | ||
</Typography> | ||
<Button color="default" onClick={() => setOpen(false)} size="small"> | ||
Got it! | ||
</Button> | ||
</DialogContent> | ||
</Dialog> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.