From 0ede1bb75ad42115f1c0125c500b68d6b311f802 Mon Sep 17 00:00:00 2001 From: Pkpedram Date: Mon, 21 Feb 2022 18:23:50 +0330 Subject: [PATCH] HashRouter For Demo --- src/App.js | 2 +- src/view/addProduct/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index e4bb529..9810ece 100644 --- a/src/App.js +++ b/src/App.js @@ -1,6 +1,6 @@ import logo from './logo.svg'; import './App.css'; -import { BrowserRouter as Router, Routes, Route } from "react-router-dom"; +import { HashRouter as Router, Routes, Route } from "react-router-dom"; import Dashboard2 from './view/dashboard2/Dashboard2'; import Header from './components/header/Header'; import Nav from './components/nav/Nav'; diff --git a/src/view/addProduct/index.js b/src/view/addProduct/index.js index 15f943e..45b463a 100644 --- a/src/view/addProduct/index.js +++ b/src/view/addProduct/index.js @@ -4,7 +4,7 @@ import SideAP from "./Sidebar"; const AddProduct = () => { return( -
+