This commit is contained in:
Elijah Lucian
2021-04-11 16:51:24 -07:00
parent 69a7dd3816
commit 46e58722d6
6 changed files with 46 additions and 22 deletions
+2
View File
@@ -6,6 +6,7 @@ import { Route, Switch } from 'react-router'
import { Dashboard } from './pages/Dashboard'
import { NavRoute, AppHeader } from './layout/AppHeader'
import { Profile } from './pages/Profile'
import { NewUser } from './forms/NewUser'
export const CoreLayout = () => {
const { user } = useUserContext()
@@ -13,6 +14,7 @@ export const CoreLayout = () => {
const routes: NavRoute[] = [
{ exact: true, path: '/', label: 'Dashboard', component: Dashboard },
{ path: '/profile', label: 'Profile', component: Profile },
{ path: '/new/user', label: 'New User', component: NewUser },
]
if (!user)