added the ability to disable registration

This commit is contained in:
daniel31x13
2023-09-28 19:07:25 +03:30
parent 7585d52750
commit fdcae013c6
5 changed files with 132 additions and 115 deletions
+11 -9
View File
@@ -97,15 +97,17 @@ export default function Login() {
className=" w-full text-center"
loading={submitLoader}
/>
<div className="flex items-baseline gap-1 justify-center">
<p className="w-fit text-gray-500 dark:text-gray-400">New here?</p>
<Link
href={"/register"}
className="block text-black dark:text-white font-semibold"
>
Sign Up
</Link>
</div>
{process.env.NEXT_PUBLIC_DISABLE_REGISTRATION === "true" ? undefined : (
<div className="flex items-baseline gap-1 justify-center">
<p className="w-fit text-gray-500 dark:text-gray-400">New here?</p>
<Link
href={"/register"}
className="block text-black dark:text-white font-semibold"
>
Sign Up
</Link>
</div>
)}
</div>
</CenteredForm>
);