Web: Components: ViewSelector: Added loading container for svg
This commit is contained in:
parent
d403fa1dcd
commit
d77a2f4541
@ -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>
|
||||
);
|
||||
})}
|
||||
|
Loading…
Reference in New Issue
Block a user