Web: Components: ViewSelector: Added loading container for svg

This commit is contained in:
Ilya Oleshko 2021-11-16 10:56:30 +03:00
parent d403fa1dcd
commit d77a2f4541

View File

@ -24,6 +24,7 @@ const ViewSelector = ({
};
const lastIndx = viewSettings && viewSettings.length - 1;
const loadingSVG = () => <svg></svg>;
return (
<StyledViewSelector
@ -46,7 +47,7 @@ const ViewSelector = ({
className="view-selector-icon"
data-view={value}
>
<ReactSVG src={icon} />
<ReactSVG src={icon} loading={loadingSVG} />
</IconWrapper>
);
})}