Merge branch 'main' of https://gitlab.com/hanifsalafi/mediahub_redesign into prod
This commit is contained in:
commit
4c74c191cc
|
|
@ -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");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -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]"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue