Moved code into src folder. Added build for component library.
This commit is contained in:
22
src/pages/login.js
Normal file
22
src/pages/login.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import LoginLayout from 'components/pages/login/LoginLayout';
|
||||
import LoginForm from 'components/pages/login/LoginForm';
|
||||
|
||||
export default function ({ disabled }) {
|
||||
if (disabled) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<LoginLayout title="login">
|
||||
<LoginForm />
|
||||
</LoginLayout>
|
||||
);
|
||||
}
|
||||
|
||||
export async function getServerSideProps() {
|
||||
return {
|
||||
props: {
|
||||
disabled: !!process.env.DISABLE_LOGIN,
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user