refactor: move sign up, sign in and sign out pages to main/authPages folder and create locales for everyone

This commit is contained in:
2023-06-02 22:32:23 +01:00
parent fd59c53372
commit 4d10eba0e7
10 changed files with 36 additions and 5 deletions

View File

@@ -0,0 +1,40 @@
import i18next from 'i18next';
import SignInPage from './SignInPage';
import authRoles from '../../../auth/authRoles';
import en from './i18n/en';
i18next.addResourceBundle('en', 'signInPage', en);
const SignInConfig = {
settings: {
layout: {
config: {
navbar: {
display: false,
},
toolbar: {
display: false,
},
footer: {
display: false,
},
leftSidePanel: {
display: false,
},
rightSidePanel: {
display: false,
},
},
},
},
auth: authRoles.onlyGuest,
routes: [
{
path: 'sign-in',
element: <SignInPage />,
},
],
};
export default SignInConfig;