Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
chore: move messages to start screen
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Jul 4, 2024
1 parent 336975a commit e6c8de8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 8 additions & 1 deletion frontend/src/screens/Start.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
8 changes: 0 additions & 8 deletions frontend/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,6 @@ export const budgetOptions: Record<string, number> = {
Unlimited: 0,
};

export const startupMessages: string[] = [
"Unlocking",
"Starting the wallet",
"Connecting to the network",
"Syncing",
"Still syncing, please wait...",
];

export interface ErrorResponse {
message: string;
}
Expand Down

0 comments on commit e6c8de8

Please sign in to comment.