From fcff8e5dfef704dcb65a953921888c7366eb75c1 Mon Sep 17 00:00:00 2001 From: Adrian Timpau Date: Mon, 1 Apr 2024 18:14:58 +0300 Subject: [PATCH 01/12] Error Modal --- frontend/components/modal/ErrorModal.tsx | 43 ++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 frontend/components/modal/ErrorModal.tsx diff --git a/frontend/components/modal/ErrorModal.tsx b/frontend/components/modal/ErrorModal.tsx new file mode 100644 index 00000000..deab840e --- /dev/null +++ b/frontend/components/modal/ErrorModal.tsx @@ -0,0 +1,43 @@ +import { Button } from '@components/buttons/Button' +import { ModalWrapper } from '@components/modal/ModalWrapper' +import Link from 'next/link' +import { useState } from 'react' + +export function ErrorModal() { + return ( + +
+

+ Something went wrong +

+
+

+ Please check back later +

+

+ WalletSendTransactionError. failed to send transactions. + Transactions simulation failed. Error processing instruction +

+
+
+ +
+
+
+ ) +} From 9c604b88c820677231d095afb7dcf932a80a301a Mon Sep 17 00:00:00 2001 From: Adrian Timpau Date: Mon, 1 Apr 2024 18:40:49 +0300 Subject: [PATCH 02/12] congestion banner --- frontend/components/Layout.tsx | 24 ++++++++++++++++++++---- frontend/components/modal/ErrorModal.tsx | 1 - frontend/images/warning.inline.svg | 6 ++++++ 3 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 frontend/images/warning.inline.svg diff --git a/frontend/components/Layout.tsx b/frontend/components/Layout.tsx index 5cc6731e..300f59af 100644 --- a/frontend/components/Layout.tsx +++ b/frontend/components/Layout.tsx @@ -1,6 +1,8 @@ import Image from 'next/image' import { usePathname } from 'next/navigation' -import { ReactNode } from 'react' +import { ReactNode, useState } from 'react' +import Close from '@images/close.inline.svg' +import Warn from '@images/warning.inline.svg' import { useRouter } from 'next/router' import { WELCOME_METADATA } from 'pages' @@ -24,6 +26,7 @@ type LayoutProps = { export const Layout = ({ children, setDisclaimerWasRead }: LayoutProps) => { const pathname = usePathname() const router = useRouter() + const [banner, setBanner] = useState(true) const disableSideNav = process.env.NODE_ENV === 'production' @@ -43,8 +46,21 @@ export const Layout = ({ children, setDisclaimerWasRead }: LayoutProps) => { return ( <> -
-
+
+ {banner && ( +
+
+ + + We expect that this airdrop will cause congestion on solana! + + +
+
+ )} +
{
-
+
    + + + + + From d4fe66c6f3981ec16d6100e30ec9f18618367582 Mon Sep 17 00:00:00 2001 From: Adrian Timpau Date: Mon, 1 Apr 2024 19:04:44 +0300 Subject: [PATCH 03/12] fix banneron mobile --- frontend/components/Layout.tsx | 9 ++++++--- frontend/sections/TokensReceived.tsx | 5 ----- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/frontend/components/Layout.tsx b/frontend/components/Layout.tsx index 300f59af..2436f442 100644 --- a/frontend/components/Layout.tsx +++ b/frontend/components/Layout.tsx @@ -49,12 +49,15 @@ export const Layout = ({ children, setDisclaimerWasRead }: LayoutProps) => {
    {banner && (
    -
    +
    - + We expect that this airdrop will cause congestion on solana! -
    diff --git a/frontend/sections/TokensReceived.tsx b/frontend/sections/TokensReceived.tsx index b841dcbf..d612cfab 100644 --- a/frontend/sections/TokensReceived.tsx +++ b/frontend/sections/TokensReceived.tsx @@ -2,11 +2,6 @@ import W from '@images/wtoken.inline.svg' import { Box } from '@components/Box' import { Button } from '@components/buttons/Button' -import Discord from '@images/discord.inline.svg' -import Linkedin from '@images/linkedin.inline.svg' -import Telegram from '@images/telegram.inline.svg' -import Twitter from '@images/twitter.inline.svg' -import Link from 'next/link' import { resetLocalState } from 'utils/store' import { BoxTitle } from '@components/BoxTitle' import Subscribe from '@components/Subscribe' From c52512621c2cb56bc2801d4d43f0ddc935c3dc7d Mon Sep 17 00:00:00 2001 From: Adrian Timpau Date: Mon, 1 Apr 2024 19:21:50 +0300 Subject: [PATCH 04/12] fix banner --- frontend/components/Layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/components/Layout.tsx b/frontend/components/Layout.tsx index 2436f442..d5c3d545 100644 --- a/frontend/components/Layout.tsx +++ b/frontend/components/Layout.tsx @@ -49,7 +49,7 @@ export const Layout = ({ children, setDisclaimerWasRead }: LayoutProps) => {
    {banner && (
    -
    +
    We expect that this airdrop will cause congestion on solana! From fcdd9ad8c3120574da6dd47120a377ecdaf1df0d Mon Sep 17 00:00:00 2001 From: Adrian Timpau Date: Tue, 2 Apr 2024 00:46:23 +0300 Subject: [PATCH 05/12] update copy --- frontend/components/Layout.tsx | 3 ++- frontend/components/modal/ErrorModal.tsx | 7 ++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/frontend/components/Layout.tsx b/frontend/components/Layout.tsx index d5c3d545..df218ded 100644 --- a/frontend/components/Layout.tsx +++ b/frontend/components/Layout.tsx @@ -52,7 +52,8 @@ export const Layout = ({ children, setDisclaimerWasRead }: LayoutProps) => {
    - We expect that this airdrop will cause congestion on solana! + We expect that this airdrop will cause congestion on Solana. + Please try again if your claim does not go through.