Web: Common: move shell changes from hotfix/campaigns banner

This commit is contained in:
Viktor Fomin 2022-02-15 11:37:31 +03:00
parent 175e07b1d2
commit f26eb17fe1

View File

@ -324,11 +324,13 @@ const Shell = ({ items = [], page = "home", ...rest }) => {
fetchMaintenance();
fetchBanners();
fbInterval = setInterval(fetchMaintenance, 60000);
const bannerInterval = setInterval(fetchBanners, 60000 * 720); // get every 12 hours
return () => {
if (fbInterval) {
clearInterval(fbInterval);
}
clearInterval(bannerInterval);
clearSnackBarTimer();
};
}, [isLoaded]);