Commit 918d153e authored by Rais Aryaguna's avatar Rais Aryaguna

refactor: remove demos-react-captcha dependency and related code

parent cfb2bc8b
declare module 'demos-react-captcha' {
import type * as React from 'react';
export interface CaptchaProps {
onRefresh?: () => void;
onChange?: (verified: boolean) => void;
placeholder?: string;
length?: number;
width?: number;
height?: number;
className?: string;
}
const Captcha: React.FC<CaptchaProps>;
export default Captcha;
}
......@@ -8,7 +8,7 @@ import {
Alert,
} from '@mui/material';
import { useState } from 'react';
import Captcha from 'demos-react-captcha';
// import Captcha from 'demos-react-captcha';
interface DialogConfirmProps {
isOpen: boolean;
......@@ -102,7 +102,7 @@ export default function DialogConfirm({
)}
{/* Captcha opsional */}
{isCaptcha && (
{/* {isCaptcha && (
<div className="flex items-center justify-center mt-2 mb-3">
<Captcha
onRefresh={() => setIsVerified(false)}
......@@ -111,7 +111,7 @@ export default function DialogConfirm({
length={5}
/>
</div>
)}
)} */}
{children}
</DialogContent>
......
......@@ -4560,11 +4560,6 @@ delayed-stream@~1.0.0:
resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"
integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==
demos-react-captcha@^1.0.11:
version "1.0.11"
resolved "https://registry.yarnpkg.com/demos-react-captcha/-/demos-react-captcha-1.0.11.tgz#1ed94be023275e09823c073a4306893f5f20d692"
integrity sha512-J0/uNNRVzk91hNGhSCh5zukcYWTGRDjtsgNgKzuK36JogZZNXdvbcUeSK9gxGGlDQ/LNcnV50kvrf60wGqbiUw==
dequal@^2.0.0, dequal@^2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment