Make redirect props optional

This commit is contained in:
mbaharip
2023-05-25 22:55:50 +07:00
parent a820c746d7
commit 2392be302d
+2 -2
View File
@@ -9,10 +9,10 @@ import { Constant } from "types/general/constant";
function Password({
path,
redirect,
redirect = "/",
}: {
path: string;
redirect: string;
redirect?: string;
}) {
const router = useRouter();
const [password, setPassword] = useState<string>("");