HashRouter For Demo

main
Pedram Keshavarzi 3 years ago
parent 0b4266be17
commit 0ede1bb75a
  1. 2
      src/App.js
  2. 2
      src/view/addProduct/index.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';

@ -4,7 +4,7 @@ import SideAP from "./Sidebar";
const AddProduct = () => {
return(
<div className="w-[96%] h-screen bg-grayFD flex items-start mt-20 py-10 justify-center">
<div className="w-11/12 h-screen bg-grayFD flex items-start mt-20 py-10 justify-center">
<div className="w-1/4">
<SideAP />
</div>

Loading…
Cancel
Save