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

Loading…
Cancel
Save