From 95032e76cd9b227f72d35019e766739f4e53bdef Mon Sep 17 00:00:00 2001 From: Pkpedram Date: Sat, 29 Jan 2022 11:49:28 +0330 Subject: [PATCH] Videos Page Not Showing In Desktop Version (Redirects To Products) --- src/router.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/router.js b/src/router.js index 79e696a..57c75dd 100644 --- a/src/router.js +++ b/src/router.js @@ -1,5 +1,6 @@ import React, { useEffect } from "react"; -import { BrowserRouter, Routes, Route } from "react-router-dom"; +import { BrowserRouter, Routes, Route, } from "react-router-dom"; +import { Navigate } from 'react-router-dom'; import { connect } from "react-redux"; import { publicApi } from "./redux/actions"; import Navbar from "./components/Navbar"; @@ -154,10 +155,11 @@ function Router({ /> } /> - + /> : } - /> + > +