File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 6
6
- [ FAQ: Difference between - npm install & npm ci] ( #faq-difference-between-npm-install--npm-ci )
7
7
- [ Description of Folder Structure] ( #description-of-folder-structure )
8
8
- [ How to Create a Similar Project By Yourself] ( #how-to-create-a-similar-project-by-yourself )
9
+ - [ How to Dockerize React App (Coming Soon on My Blog)] ( https://mukitul-islam.blogspot.com/ )
9
10
10
11
#
11
12
Original file line number Diff line number Diff line change @@ -4,12 +4,13 @@ import {
4
4
} from "react-router-dom" ;
5
5
import MainLayout from "./components/layouts/MainLayout" ;
6
6
import HomeScreen from "./components/screens/home/HomeScreen" ;
7
+ import { AppRoutes } from "./utils/AppRoutes" ;
7
8
8
9
const getMainLayout = ( ) => {
9
10
return ( < MainLayout >
10
11
< Routes >
11
- < Route path = { "/home" } element = { < HomeScreen /> } />
12
- < Route path = { "*" } element = { < HomeScreen /> } />
12
+ < Route path = { AppRoutes . HOME } element = { < HomeScreen /> } />
13
+ < Route path = { AppRoutes . ANY } element = { < HomeScreen /> } />
13
14
</ Routes >
14
15
</ MainLayout > )
15
16
Original file line number Diff line number Diff line change
1
+ export const AppRoutes = {
2
+ ANY : '*' ,
3
+ HOME : '/home'
4
+ }
You can’t perform that action at this time.
0 commit comments