mirror of
https://github.com/documenso/documenso.git
synced 2025-11-19 19:21:39 +10:00
Remove unused props from components
This commit is contained in:
@ -12,7 +12,7 @@ interface ResetPasswordForm {
|
|||||||
confirmPassword: string;
|
confirmPassword: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function ResetPassword(props: any) {
|
export default function ResetPassword() {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { token } = router.query;
|
const { token } = router.query;
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ export default function ResetPassword(props: any) {
|
|||||||
setResetSuccessful(true);
|
setResetSuccessful(true);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
router.push("/login");
|
router.push("/login");
|
||||||
}, 2000);
|
}, 3000);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -2,13 +2,13 @@ import Head from "next/head";
|
|||||||
import { getUserFromToken } from "@documenso/lib/server";
|
import { getUserFromToken } from "@documenso/lib/server";
|
||||||
import ResetPassword from "../../../components/reset-password";
|
import ResetPassword from "../../../components/reset-password";
|
||||||
|
|
||||||
export default function ResetPasswordPage(props: any) {
|
export default function ResetPasswordPage() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Head>
|
<Head>
|
||||||
<title>Reset Password | Documenso</title>
|
<title>Reset Password | Documenso</title>
|
||||||
</Head>
|
</Head>
|
||||||
<ResetPassword allowSignup={props.ALLOW_SIGNUP}></ResetPassword>
|
<ResetPassword />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -24,11 +24,7 @@ export async function getServerSideProps(context: any) {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const ALLOW_SIGNUP = process.env.NEXT_PUBLIC_ALLOW_SIGNUP === "true";
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {},
|
||||||
ALLOW_SIGNUP,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,13 +2,13 @@ import Head from "next/head";
|
|||||||
import { getUserFromToken } from "@documenso/lib/server";
|
import { getUserFromToken } from "@documenso/lib/server";
|
||||||
import ForgotPassword from "../components/forgot-password";
|
import ForgotPassword from "../components/forgot-password";
|
||||||
|
|
||||||
export default function ForgotPasswordPage(props: any) {
|
export default function ForgotPasswordPage() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Head>
|
<Head>
|
||||||
<title>Forgot Password | Documenso</title>
|
<title>Forgot Password | Documenso</title>
|
||||||
</Head>
|
</Head>
|
||||||
<ForgotPassword allowSignup={props.ALLOW_SIGNUP}></ForgotPassword>
|
<ForgotPassword />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -24,11 +24,7 @@ export async function getServerSideProps(context: any) {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const ALLOW_SIGNUP = process.env.NEXT_PUBLIC_ALLOW_SIGNUP === "true";
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {},
|
||||||
ALLOW_SIGNUP,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user