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

@@ -9,15 +9,14 @@ import { Button } from '@shared/button';
import { EyeOffIcon, EyeOnIcon, LoaderIcon } from '@shared/icons';
import { useOnboarding } from '@stores/onboarding';
import { useStronghold } from '@stores/stronghold';
export function CreateStep1Screen() {
const navigate = useNavigate();
const queryClient = useQueryClient();
const navigate = useNavigate();
const setPrivkey = useStronghold((state) => state.setPrivkey);
const setPubkey = useOnboarding((state) => state.setPubkey);
const [setPubkey, setPrivkey] = useOnboarding((state) => [
state.setPubkey,
state.setPrivkey,
]);
const [privkeyInput, setPrivkeyInput] = useState('password');
const [loading, setLoading] = useState(false);