-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor pages adding into App with app-config
- Loading branch information
1 parent
4847304
commit 631871d
Showing
3 changed files
with
66 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
const pages = { | ||
notFoundPage: { | ||
id: 0, | ||
route: '*', | ||
component: 'notFoundPage', | ||
isPrivate: false, | ||
}, | ||
mainPage: { | ||
id: 1, | ||
route: '/', | ||
component: 'mainPage', | ||
isPrivate: true, | ||
}, | ||
loginPage: { | ||
id: 2, | ||
route: '/login', | ||
component: 'loginPage', | ||
isPrivate: false, | ||
}, | ||
signupPage: { | ||
id: 3, | ||
route: '/signup', | ||
component: 'signupPage', | ||
isPrivate: false, | ||
}, | ||
}; | ||
|
||
export default { | ||
pages, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
export { default as LoginPage } from './LoginPage'; | ||
export { default as MainPage } from './MainPage'; | ||
export { default as NotFoundPage } from './NotFoundPage'; | ||
export { default as SignupPage } from './SignupPage'; | ||
import LoginPage from './LoginPage'; | ||
import MainPage from './MainPage'; | ||
import NotFoundPage from './NotFoundPage'; | ||
import SignupPage from './SignupPage'; | ||
|
||
export default { | ||
loginPage: () => LoginPage, | ||
mainPage: () => MainPage, | ||
notFoundPage: () => NotFoundPage, | ||
signupPage: () => SignupPage, | ||
}; |