Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
Repair-app
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chaiwat
Repair-app
Commits
4c20e709
Commit
4c20e709
authored
Nov 22, 2021
by
chaiwat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Ecommerce
parent
749a6447
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
Routers.jsx
src/router/Routers.jsx
+12
-6
No files found.
src/router/Routers.jsx
View file @
4c20e709
import
{
BrowserRouter
as
AppRouter
,
Route
,
Switch
}
from
"react-router-dom"
;
import
Ecommerce
from
"../view/Dashboards/ecommerce"
;
import
{
BrowserRouter
as
AppRouter
,
Route
,
Switch
}
from
'react-router-dom'
//import Login
//import Login
import
Login
from
"../view/Login"
;
import
Login
from
"../view/Login"
;
...
@@ -12,9 +10,17 @@ export default function Routers() {
...
@@ -12,9 +10,17 @@ export default function Routers() {
<
Switch
>
<
Switch
>
<
Route
<
Route
exact
exact
path=
{
'/'
}
path=
{
"/"
}
render=
{
()
=>
{
return
<
Login
/>;
}
}
/>
<
Route
exact
path=
{
"/Dashboard"
}
render=
{
()
=>
{
render=
{
()
=>
{
return
<
Login
/>
return
<
Ecommerce
/>;
}
}
}
}
/>
/>
</
Switch
>
</
Switch
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment