Skip to content

Commit

Permalink
fix: removing un-used component
Browse files Browse the repository at this point in the history
  • Loading branch information
jcaleb4 committed Dec 18, 2024
1 parent 149d5cf commit a7ddeae
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions account-kit/react/src/components/auth/card/loading/otp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,41 +78,3 @@ export const LoadingOtp = () => {
</div>
);
};

// export const CompletingOtp = () => {
// const { isConnected } = useSignerStatus();
// const { setAuthStep, authStep } = useAuthContext("otp_completing");
// const { authenticate } = useAuthenticate({
// onError: (error: any) => {
// console.error(error);
// const { email } = authStep;
// setAuthStep({ type: "otp_verify", email, error });
// },
// onSuccess: () => {
// if (isConnected && authStep.createPasskeyAfter) {
// setAuthStep({ type: "passkey_create" });
// } else if (isConnected) {
// setAuthStep({ type: "complete" });
// }
// },
// });

// useEffect(() => {
// authenticate({ type: "otp", otpCode: authStep.otp });
// // eslint-disable-next-line react-hooks/exhaustive-deps
// }, []);

// return (
// <div className="flex flex-col items-center justify-center ">
// <div className="flex flex-col items-center justify-center h-12 w-12 mb-5">
// <Spinner />
// </div>
// <h2 className="text-fg-primary font-semibold text-lg mb-2">
// {ls.completingOtp.title}
// </h2>
// <p className="text-fg-secondary text-center text-sm">
// {ls.completingOtp.body}
// </p>
// </div>
// );
// };

0 comments on commit a7ddeae

Please sign in to comment.