Commit 4c20e709 authored by chaiwat's avatar chaiwat

add Ecommerce

parent 749a6447
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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment