mirror of
https://github.com/Nezumi-2711/next-gdrive-index.git
synced 2026-09-22 13:38:38 +00:00
Make redirect props optional
This commit is contained in:
@@ -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>("");
|
||||
|
||||
Reference in New Issue
Block a user