From e876b57350ee74fe5568cd99440791e0f7ffb7fc Mon Sep 17 00:00:00 2001 From: KaffinPX Date: Fri, 18 Oct 2024 18:38:26 +0300 Subject: [PATCH] Improve password page (Requirement component) --- src/pages/Creation/Import.tsx | 2 +- src/pages/Creation/Password.tsx | 58 ++++++++++++++++++++------------- 2 files changed, 36 insertions(+), 24 deletions(-) diff --git a/src/pages/Creation/Import.tsx b/src/pages/Creation/Import.tsx index 8ff97e5..89a390d 100644 --- a/src/pages/Creation/Import.tsx +++ b/src/pages/Creation/Import.tsx @@ -35,7 +35,7 @@ export default function Import ({ onSubmit }: {

- Enter mnemonic, theq key of a wallet. + Enter mnemonic, the key of a wallet.

diff --git a/src/pages/Creation/Password.tsx b/src/pages/Creation/Password.tsx index 9c26bc9..8222e2d 100644 --- a/src/pages/Creation/Password.tsx +++ b/src/pages/Creation/Password.tsx @@ -1,4 +1,4 @@ -import { KeyIcon } from "lucide-react" +import { KeyIcon, XIcon, CheckIcon } from "lucide-react" import { useState, useMemo } from "react" enum PasswordErrors { @@ -53,27 +53,27 @@ export default function Password ({ onSet }: { -
- - - - - +
+ + + + +
) -} \ No newline at end of file +} + +const Requirement = ({ condition, label }: { + condition: boolean, + label: string +}) => { + return ( + + ); +};