Removed 'Loading' paragraph from icon loading state
This commit is contained in:
committed by
fabioberger
parent
0cffdc9868
commit
27832741e4
@@ -1,8 +1,7 @@
|
||||
import React from 'react';
|
||||
import React, { Fragment } from 'react';
|
||||
import Loadable from 'react-loadable';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Paragraph } from 'ts/components/text';
|
||||
import { getCSSPadding, PaddingInterface } from 'ts/constants/utilities';
|
||||
import { colors } from 'ts/style/colors';
|
||||
|
||||
@@ -17,7 +16,7 @@ export const Icon: React.FC<IconProps> = props => {
|
||||
if (props.name && !props.component) {
|
||||
const IconSVG = Loadable({
|
||||
loader: async () => import(/* webpackChunkName: "icon" */ `ts/icons/illustrations/${props.name}.svg`),
|
||||
loading: () => <Paragraph>Loading</Paragraph>,
|
||||
loading: () => <Fragment />,
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user