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