migration(frontend): migrated frontend files except some components to ts

This commit is contained in:
akhilmhdh
2023-01-15 00:13:25 +05:30
parent 4df205dea6
commit 67365e5480
53 changed files with 1761 additions and 1626 deletions
@@ -1,6 +1,6 @@
interface PasswordCheckProps {
password: string;
currentErrorCheck: boolean;
errorCheck: boolean;
setPasswordErrorLength: (value: boolean) => void;
setPasswordErrorNumber: (value: boolean) => void;
setPasswordErrorLowerCase: (value: boolean) => void;
@@ -14,9 +14,8 @@ const passwordCheck = ({
setPasswordErrorLength,
setPasswordErrorNumber,
setPasswordErrorLowerCase,
currentErrorCheck,
errorCheck,
}: PasswordCheckProps) => {
let errorCheck = currentErrorCheck;
if (!password || password.length < 14) {
setPasswordErrorLength(true);
errorCheck = true;