update set password flow

This commit is contained in:
Ren Amamiya
2023-07-10 17:16:43 +07:00
parent c664b3e4a4
commit 339783a1a4
6 changed files with 55 additions and 82 deletions

View File

@@ -29,11 +29,15 @@ const resolver: Resolver<FormValues> = async (values) => {
export function CreateStep2Screen() {
const navigate = useNavigate();
const setPassword = useStronghold((state) => state.setPassword);
const [pubkey, privkey] = useOnboarding((state) => [state.pubkey, state.privkey]);
const [passwordInput, setPasswordInput] = useState('password');
const [loading, setLoading] = useState(false);
const [privkey, setPassword] = useStronghold((state) => [
state.privkey,
state.setPassword,
]);
const pubkey = useOnboarding((state) => state.privkey);
const { save } = useSecureStorage();