Web: Files: is loading banner

This commit is contained in:
Viktor Fomin 2021-11-08 13:36:28 +03:00
parent 21a9f115f1
commit 243a63dda5

View File

@ -106,10 +106,14 @@ const Banner = (props) => {
.split(",") .split(",")
.filter((campaign) => campaign.length > 0); .filter((campaign) => campaign.length > 0);
if (!campaigns.length || !tReady) { if (!campaigns.length) {
return <></>; return <></>;
} }
/*if (!tReady) {
return <h1>Loading...</h1>;
}*/
return ( return (
<CampaignsBanner <CampaignsBanner
headerLabel={t("Header")} headerLabel={t("Header")}
@ -117,6 +121,7 @@ const Banner = (props) => {
img={bannerImage} img={bannerImage}
btnLabel={t("ButtonLabel")} btnLabel={t("ButtonLabel")}
link={t("Link")} link={t("Link")}
isLoading={!tReady}
/> />
); );
}; };