feat(layout): replace AuthLayout with SimpleLayout for login and registration routes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Routes } from '@angular/router';
|
||||
|
||||
import { AuthLayoutComponent } from '../../core/layout/auth-layout/auth-layout.component';
|
||||
import { SimpleLayoutComponent } from '../../core/layout/simple-layout/simple-layout.component';
|
||||
import { StoreLayoutComponent } from '../../core/layout/store-layout/store-layout.component';
|
||||
import { authGuard, guestOnlyGuard } from '../../core/services/auth/auth.guards';
|
||||
import { LoginPageComponent } from './pages/login-page/login-page.component';
|
||||
@@ -19,7 +19,7 @@ export const routes: Routes = [
|
||||
{
|
||||
path: 'login',
|
||||
canActivate: [guestOnlyGuard],
|
||||
component: AuthLayoutComponent,
|
||||
component: SimpleLayoutComponent,
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
@@ -30,7 +30,7 @@ export const routes: Routes = [
|
||||
{
|
||||
path: 'register',
|
||||
canActivate: [guestOnlyGuard],
|
||||
component: AuthLayoutComponent,
|
||||
component: SimpleLayoutComponent,
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
|
||||
Reference in New Issue
Block a user