This commit is contained in:
hanif salafi 2025-08-11 17:22:26 +07:00
commit 4c74c191cc
3 changed files with 7 additions and 6 deletions

View File

@ -75,7 +75,8 @@ const AuthPage = ({ params: { locale } }: { params: { locale: string } }) => {
toast.error(error); toast.error(error);
}; };
const handleOTPResend = () => { const handleOTPResend = async () => {
const result = await validateEmail(loginCredentials as LoginFormData);
toast.info("OTP resent successfully"); toast.info("OTP resent successfully");
}; };

View File

@ -67,9 +67,9 @@ export const OTPForm: React.FC<OTPFormProps> = ({
} }
}; };
const handleResend = () => { // const handleResend = () => {
onResend?.(); // onResend?.();
}; // };
return ( return (
<div className={className}> <div className={className}>
@ -138,7 +138,7 @@ export const OTPForm: React.FC<OTPFormProps> = ({
<div className="text-center"> <div className="text-center">
<button <button
type="button" type="button"
onClick={handleResend} onClick={onResend}
disabled={loading} disabled={loading}
className="text-sm text-blue-600 hover:text-blue-800 underline disabled:opacity-50 disabled:cursor-not-allowed" className="text-sm text-blue-600 hover:text-blue-800 underline disabled:opacity-50 disabled:cursor-not-allowed"
> >

View File

@ -161,7 +161,7 @@ const ScrollableContent = () => {
</div> </div>
<button <button
onClick={() => onClick={() =>
router.push(prefixPath + `/${contentType}/filter?title=${search}`) router.push(prefixPath + `/${contentType}/filter?title=${search.toLowerCase()}`)
} }
className="flex justify-center items-center px-6 w-full lg:w-[20%] py-4 bg-[#bb3523] gap-2 text-white rounded-lg hover:bg-red-700 text-[14px]" className="flex justify-center items-center px-6 w-full lg:w-[20%] py-4 bg-[#bb3523] gap-2 text-white rounded-lg hover:bg-red-700 text-[14px]"
> >