Web: Common: move shell changes from hotfix/campaigns banner
This commit is contained in:
parent
175e07b1d2
commit
f26eb17fe1
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user