|
|
|
@ -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); |
|
|
|
|