diff --git a/src/app/main/authPages/forgot-password/ForgotPasswordPage.js b/src/app/main/authPages/forgot-password/ForgotPasswordPage.js index 14412c9..c9d626c 100644 --- a/src/app/main/authPages/forgot-password/ForgotPasswordPage.js +++ b/src/app/main/authPages/forgot-password/ForgotPasswordPage.js @@ -43,7 +43,7 @@ function ForgotPasswordPage({ t }) { theme.palette.background?.authPaper }} + sx={{ background: (theme) => theme.palette.background?.default }} >
@@ -81,7 +81,7 @@ function ForgotPasswordPage({ t }) { )} /> -
+
+ {errors.root?.message && ( +

{errors.root?.message}

+ )}
{t('return')} - + {t('sign_in')} diff --git a/src/app/main/authPages/shared-components/LeftSideCanvas.js b/src/app/main/authPages/shared-components/LeftSideCanvas.js index bd30a88..835b4f3 100644 --- a/src/app/main/authPages/shared-components/LeftSideCanvas.js +++ b/src/app/main/authPages/shared-components/LeftSideCanvas.js @@ -6,7 +6,7 @@ function LeftSideCanvas({ title, subtitle, text }) { return (
- {title &&
{title}
} + {title &&
{title}
} {subtitle && ( -
{subtitle}
+
+ {subtitle} +
)}
@@ -48,7 +50,9 @@ function LeftSideCanvas({ title, subtitle, text }) { - {text &&
{text}
} + {text && ( +
{text}
+ )}
diff --git a/src/app/main/authPages/sign-in/SignInPage.js b/src/app/main/authPages/sign-in/SignInPage.js index d8e6ca3..a08ad3d 100644 --- a/src/app/main/authPages/sign-in/SignInPage.js +++ b/src/app/main/authPages/sign-in/SignInPage.js @@ -49,7 +49,7 @@ function SignInPage({ t }) { theme.palette.background?.authPaper }} + sx={{ background: (theme) => theme.palette.background?.default }} >
@@ -57,7 +57,7 @@ function SignInPage({ t }) {
{t('have_account')} - + {t('sign_up')}
@@ -126,7 +126,9 @@ function SignInPage({ t }) { control={ theme.palette.border.light }} + sx={{ + color: (theme) => theme.palette.common.disabled, + }} /> } /> @@ -134,12 +136,12 @@ function SignInPage({ t }) { )} /> - + {t('forgot_password')}
-
+
- {errors.root &&

{errors.root.message}

} + {errors.root?.message && ( +

{errors.root?.message}

+ )}
diff --git a/src/app/main/authPages/sign-up/SignUpPage.js b/src/app/main/authPages/sign-up/SignUpPage.js index 2519c73..8cad1cf 100644 --- a/src/app/main/authPages/sign-up/SignUpPage.js +++ b/src/app/main/authPages/sign-up/SignUpPage.js @@ -61,7 +61,7 @@ function SignUpPage({ t }) { theme.palette.background?.authPaper }} + sx={{ background: (theme) => theme.palette.background?.default }} >
@@ -69,7 +69,7 @@ function SignUpPage({ t }) {
{t('have_account')} - + {t('sign_in')}
@@ -181,7 +181,10 @@ function SignUpPage({ t }) { theme.palette.border.light }} /> + theme.palette.common.disabled }} + /> } /> {errors?.acceptTermsConditions?.message} @@ -189,7 +192,7 @@ function SignUpPage({ t }) { )} /> -
+
+ {errors.root?.message && ( +

{errors.root?.message}

+ )}
diff --git a/src/app/main/navigationPages/dashboard/Dashboard.js b/src/app/main/navigationPages/dashboard/Dashboard.js index 2e9f334..6f0e430 100644 --- a/src/app/main/navigationPages/dashboard/Dashboard.js +++ b/src/app/main/navigationPages/dashboard/Dashboard.js @@ -21,11 +21,11 @@ function DashboardPage(props) { return ( -

{t('TITLE')}

-
- } + // header={ + //
+ //

{t('TITLE')}

+ //
+ // } content={

Content

diff --git a/src/app/main/navigationPages/favorites/Favorites.js b/src/app/main/navigationPages/favorites/Favorites.js index fe85856..dd5bf8f 100644 --- a/src/app/main/navigationPages/favorites/Favorites.js +++ b/src/app/main/navigationPages/favorites/Favorites.js @@ -21,11 +21,11 @@ function FavoritesPage(props) { return ( -

{t('TITLE')}

-
- } + // header={ + //
+ //

{t('TITLE')}

+ //
+ // } content={

Content

diff --git a/src/app/main/navigationPages/history/History.js b/src/app/main/navigationPages/history/History.js index d94731a..406b93f 100644 --- a/src/app/main/navigationPages/history/History.js +++ b/src/app/main/navigationPages/history/History.js @@ -21,11 +21,11 @@ function HistoryPage(props) { return ( -

{t('TITLE')}

-
- } + // header={ + //
+ //

{t('TITLE')}

+ //
+ // } content={

Content

diff --git a/src/app/main/navigationPages/profile/Profile.js b/src/app/main/navigationPages/profile/Profile.js index d82849d..da0be44 100644 --- a/src/app/main/navigationPages/profile/Profile.js +++ b/src/app/main/navigationPages/profile/Profile.js @@ -21,11 +21,11 @@ function ProfilePage(props) { return ( -

{t('TITLE')}

-
- } + // header={ + //
+ //

{t('TITLE')}

+ //
+ // } content={

Content

diff --git a/src/app/services/authService.js b/src/app/services/authService.js index 3e673ce..387fa3a 100644 --- a/src/app/services/authService.js +++ b/src/app/services/authService.js @@ -112,7 +112,7 @@ export default class AuthService extends FuseUtils.EventEmitter { sendPasswordResetEmail = (email) => { return new Promise((resolve, reject) => { - if (email) { + if (!email) { reject(Error('Email is empty')); } diff --git a/src/app/theme-layouts/layout1/Layout1Config.js b/src/app/theme-layouts/layout1/Layout1Config.js index 379ff09..58a7383 100644 --- a/src/app/theme-layouts/layout1/Layout1Config.js +++ b/src/app/theme-layouts/layout1/Layout1Config.js @@ -5,7 +5,6 @@ const config = { containerWidth: 1570, navbar: { display: true, - style: 'style-1', folded: true, position: 'left', }, @@ -55,32 +54,6 @@ const config = { }, ], }, - style: { - title: 'Style', - type: 'radio', - options: [ - { - name: 'Slide (style-1)', - value: 'style-1', - }, - { - name: 'Folded (style-2)', - value: 'style-2', - }, - { - name: 'Tabbed (style-3)', - value: 'style-3', - }, - { - name: 'Tabbed Dense (style-3-dense)', - value: 'style-3-dense', - }, - ], - }, - folded: { - title: 'Folded (style-2, style-3)', - type: 'switch', - }, }, }, }, diff --git a/src/app/theme-layouts/layout1/components/NavbarWrapperLayout1.js b/src/app/theme-layouts/layout1/components/NavbarWrapperLayout1.js index a8792f3..39a8114 100644 --- a/src/app/theme-layouts/layout1/components/NavbarWrapperLayout1.js +++ b/src/app/theme-layouts/layout1/components/NavbarWrapperLayout1.js @@ -3,9 +3,7 @@ import { memo } from 'react'; import { useSelector } from 'react-redux'; import { selectFuseCurrentLayoutConfig, selectNavbarTheme } from 'app/store/fuse/settingsSlice'; import { selectFuseNavbar } from 'app/store/fuse/navbarSlice'; -import NavbarStyle1 from './navbar/style-1/NavbarStyle1'; -import NavbarStyle2 from './navbar/style-2/NavbarStyle2'; -import NavbarStyle3 from './navbar/style-3/NavbarStyle3'; +import NavbarLayout1 from './navbar/NavbarLayout1'; import NavbarToggleFab from '../../shared-components/NavbarToggleFab'; function NavbarWrapperLayout1(props) { @@ -17,12 +15,7 @@ function NavbarWrapperLayout1(props) { return ( <> - <> - {config.navbar.style === 'style-1' && } - {config.navbar.style === 'style-2' && } - {config.navbar.style === 'style-3' && } - {config.navbar.style === 'style-3-dense' && } - + {config.navbar.display && !navbar.open && } diff --git a/src/app/theme-layouts/layout1/components/navbar/style-1/NavbarStyle1.js b/src/app/theme-layouts/layout1/components/navbar/NavbarLayout1.js similarity index 92% rename from src/app/theme-layouts/layout1/components/navbar/style-1/NavbarStyle1.js rename to src/app/theme-layouts/layout1/components/navbar/NavbarLayout1.js index 1bb8283..374404c 100644 --- a/src/app/theme-layouts/layout1/components/navbar/style-1/NavbarStyle1.js +++ b/src/app/theme-layouts/layout1/components/navbar/NavbarLayout1.js @@ -4,7 +4,7 @@ import SwipeableDrawer from '@mui/material/SwipeableDrawer'; import { useDispatch, useSelector } from 'react-redux'; import { navbarCloseMobile, selectFuseNavbar } from 'app/store/fuse/navbarSlice'; import { selectFuseCurrentLayoutConfig } from 'app/store/fuse/settingsSlice'; -import NavbarStyle1Content from './NavbarStyle1Content'; +import NavbarLayout1Content from './NavbarLayout1Content'; const navbarWidth = 280; @@ -40,7 +40,7 @@ const StyledNavBarMobile = styled(SwipeableDrawer)(({ theme }) => ({ }, })); -function NavbarStyle1(props) { +function NavbarLayout1(props) { const dispatch = useDispatch(); const config = useSelector(selectFuseCurrentLayoutConfig); const navbar = useSelector(selectFuseNavbar); @@ -53,7 +53,7 @@ function NavbarStyle1(props) { open={navbar.open} position={config.navbar.position} > - + @@ -72,11 +72,11 @@ function NavbarStyle1(props) { keepMounted: true, // Better open performance on mobile. }} > - + ); } -export default NavbarStyle1; +export default NavbarLayout1; diff --git a/src/app/theme-layouts/layout1/components/navbar/style-1/NavbarStyle1Content.js b/src/app/theme-layouts/layout1/components/navbar/NavbarLayout1Content.js similarity index 73% rename from src/app/theme-layouts/layout1/components/navbar/style-1/NavbarStyle1Content.js rename to src/app/theme-layouts/layout1/components/navbar/NavbarLayout1Content.js index aba68a3..91fcc78 100644 --- a/src/app/theme-layouts/layout1/components/navbar/style-1/NavbarStyle1Content.js +++ b/src/app/theme-layouts/layout1/components/navbar/NavbarLayout1Content.js @@ -2,10 +2,10 @@ import FuseScrollbars from '@fuse/core/FuseScrollbars'; import { styled } from '@mui/material/styles'; import clsx from 'clsx'; import { memo } from 'react'; -import Logo from '../../../../shared-components/Logo'; -import NavbarToggleButton from '../../../../shared-components/NavbarToggleButton'; -import UserNavbarHeader from '../../../../shared-components/UserNavbarHeader'; -import Navigation from '../../../../shared-components/Navigation'; +import Logo from '../../../shared-components/Logo'; +import NavbarToggleButton from '../../../shared-components/NavbarToggleButton'; +import UserNavbarHeader from '../../../shared-components/UserNavbarHeader'; +import Navigation from '../../../shared-components/Navigation'; const Root = styled('div')(({ theme }) => ({ backgroundColor: theme.palette.background.default, @@ -32,7 +32,7 @@ const StyledContent = styled(FuseScrollbars)(({ theme }) => ({ backgroundAttachment: 'local, scroll', })); -function NavbarStyle1Content(props) { +function NavbarLayout1Content(props) { return (
@@ -50,13 +50,9 @@ function NavbarStyle1Content(props) { - -
- footer logo -
); } -export default memo(NavbarStyle1Content); +export default memo(NavbarLayout1Content); diff --git a/src/app/theme-layouts/layout2/components/FooterLayout2.js b/src/app/theme-layouts/layout2/components/FooterLayout2.js index b9d6219..b5d7552 100644 --- a/src/app/theme-layouts/layout2/components/FooterLayout2.js +++ b/src/app/theme-layouts/layout2/components/FooterLayout2.js @@ -7,7 +7,7 @@ function FooterLayout2() { const { t } = useTranslation('layout2'); return ( -