Commit 4c20e709 authored by chaiwat's avatar chaiwat

add Ecommerce

parent 749a6447
import { BrowserRouter as AppRouter, Route, Switch } from 'react-router-dom'
import { BrowserRouter as AppRouter, Route, Switch } from "react-router-dom";
import Ecommerce from "../view/Dashboards/ecommerce";
//import Login
import Login from "../view/Login";
......@@ -12,9 +10,17 @@ export default function Routers() {
<Switch>
<Route
exact
path={'/'}
path={"/"}
render={() => {
return <Login />;
}}
/>
<Route
exact
path={"/Dashboard"}
render={() => {
return <Login />
return <Ecommerce />;
}}
/>
</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