From 79a408a1d70000598c793ee0650d737bfa7efce5 Mon Sep 17 00:00:00 2001 From: Atatakai Date: Fri, 24 May 2024 12:50:01 +0400 Subject: [PATCH] Update error state --- .../Setup/Create/SetupCreateSafe.tsx | 23 +++++++++++++++---- frontend/constants/urls.ts | 2 ++ frontend/public/broken-robot.svg | 9 ++++++++ 3 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 frontend/public/broken-robot.svg diff --git a/frontend/components/Setup/Create/SetupCreateSafe.tsx b/frontend/components/Setup/Create/SetupCreateSafe.tsx index bb982200..05fbc752 100644 --- a/frontend/components/Setup/Create/SetupCreateSafe.tsx +++ b/frontend/components/Setup/Create/SetupCreateSafe.tsx @@ -4,6 +4,8 @@ import { useEffect, useState } from 'react'; import { Chain } from '@/client'; import { CardSection } from '@/components/styled/CardSection'; +import { SUPPORT_URL } from '@/constants'; +import { UNICODE_SYMBOLS } from '@/constants/unicode'; import { PageState } from '@/enums'; import { usePageState, useSetup } from '@/hooks'; import { useWallet } from '@/hooks/useWallet'; @@ -15,7 +17,7 @@ export const SetupCreateSafe = () => { const { goto } = usePageState(); const [isCreatingSafe, setIsCreatingSafe] = useState(false); - const [isError, setIsError] = useState(true); + const [isError, setIsError] = useState(false); useEffect(() => { if (isCreatingSafe) return; @@ -41,13 +43,24 @@ export const SetupCreateSafe = () => { padding="80px 24px" gap={12} > - logo {isError ? ( - - Error, please contact support - + <> + logo + + Error, please contact{' '} + + Olas community {UNICODE_SYMBOLS.EXTERNAL_LINK} + + + ) : ( <> + logo + + + + + + + +