update router.js

master
Reza_ashrafi 2 years ago
parent 00d0aad208
commit d54b8a9037
  1. 8
      src/router.js

@ -34,7 +34,7 @@ import Dialog from "./components/Dialog";
import Address from "./views/Address"; import Address from "./views/Address";
import Favorites from "./views/Favorites"; import Favorites from "./views/Favorites";
import Addresses from "./views/Dashboard/layouts/Mobile/ProfileAddress"; import Addresses from "./views/Dashboard/layouts/Mobile/ProfileAddress";
import Profile from "./views/Auth/Profile" import Profile from "./views/Auth/Profile";
function Router({ function Router({
isDark, isDark,
@ -46,7 +46,7 @@ function Router({
setDevice, setDevice,
device, device,
getAvailableForSell, getAvailableForSell,
getUserProducts getUserProducts,
}) { }) {
useEffect(() => { useEffect(() => {
getAvailableForSell(); getAvailableForSell();
@ -604,7 +604,7 @@ function Router({
} }
/> />
</Routes> </Routes>
{!isMobile && <FooterDesign1 hasHeader />} {!isMobile ? <FooterDesign1 hasHeader /> : null}
</BrowserRouter> </BrowserRouter>
</div> </div>
</div> </div>
@ -626,7 +626,7 @@ const mapDispatchToProps = {
setMenu: menu.set, setMenu: menu.set,
setDevice: config.setDevice, setDevice: config.setDevice,
getAvailableForSell: config.getAvailableForSell, getAvailableForSell: config.getAvailableForSell,
getUserProducts: userProduct.list getUserProducts: userProduct.list,
}; };
export default connect(mapStateToProps, mapDispatchToProps)(Router); export default connect(mapStateToProps, mapDispatchToProps)(Router);

Loading…
Cancel
Save