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);
|
||||
};
|
||||
|
||||
const handleOTPResend = () => {
|
||||
const handleOTPResend = async () => {
|
||||
const result = await validateEmail(loginCredentials as LoginFormData);
|
||||
toast.info("OTP resent successfully");
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -67,9 +67,9 @@ export const OTPForm: React.FC<OTPFormProps> = ({
|
|||
}
|
||||
};
|
||||
|
||||
const handleResend = () => {
|
||||
onResend?.();
|
||||
};
|
||||
// const handleResend = () => {
|
||||
// onResend?.();
|
||||
// };
|
||||
|
||||
return (
|
||||
<div className={className}>
|
||||
|
|
@ -138,7 +138,7 @@ export const OTPForm: React.FC<OTPFormProps> = ({
|
|||
<div className="text-center">
|
||||
<button
|
||||
type="button"
|
||||
onClick={handleResend}
|
||||
onClick={onResend}
|
||||
disabled={loading}
|
||||
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>
|
||||
<button
|
||||
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]"
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in New Issue