From e6c8de8ed45b5599dcff1662ee561ef00e2ac9ea Mon Sep 17 00:00:00 2001 From: im-adithya Date: Thu, 4 Jul 2024 09:24:40 +0530 Subject: [PATCH] chore: move messages to start screen --- frontend/src/screens/Start.tsx | 9 ++++++++- frontend/src/types.ts | 8 -------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/frontend/src/screens/Start.tsx b/frontend/src/screens/Start.tsx index c3e363b9..9f88793c 100644 --- a/frontend/src/screens/Start.tsx +++ b/frontend/src/screens/Start.tsx @@ -7,11 +7,18 @@ import { LoadingButton } from "src/components/ui/loading-button"; import { useToast } from "src/components/ui/use-toast"; import { useCSRF } from "src/hooks/useCSRF"; import { useInfo } from "src/hooks/useInfo"; -import { startupMessages as messages } from "src/types"; import { asyncTimeout } from "src/utils/asyncTimeout"; import { handleRequestError } from "src/utils/handleRequestError"; import { request } from "src/utils/request"; +const messages: string[] = [ + "Unlocking", + "Starting the wallet", + "Connecting to the network", + "Syncing", + "Still syncing, please wait...", +]; + export default function Start() { const [unlockPassword, setUnlockPassword] = React.useState(""); const [loading, setLoading] = React.useState(false); diff --git a/frontend/src/types.ts b/frontend/src/types.ts index e111bf45..db6a5b80 100644 --- a/frontend/src/types.ts +++ b/frontend/src/types.ts @@ -116,14 +116,6 @@ export const budgetOptions: Record = { Unlimited: 0, }; -export const startupMessages: string[] = [ - "Unlocking", - "Starting the wallet", - "Connecting to the network", - "Syncing", - "Still syncing, please wait...", -]; - export interface ErrorResponse { message: string; }