We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4724722 commit d265890Copy full SHA for d265890
src/components/Indicators/LoadingIndicator.js
@@ -18,8 +18,7 @@ const LoadingText = styled.Text`
18
${({ theme }) => theme.loadingIndicator.loadingText.css}
19
`;
20
21
-const LoadingIndicator = (props) => {
22
- const { listType, loadingText } = props;
+const LoadingIndicator = ({ listType = 'default', loadingText }) => {
23
const { t } = useContext(TranslationContext);
24
let indicatorText = '';
25
@@ -48,8 +47,4 @@ LoadingIndicator.propTypes = {
48
47
loadingText: PropTypes.string,
49
};
50
51
-LoadingIndicator.defaultProps = {
52
- listType: 'default',
53
-};
54
-
55
export default LoadingIndicator;
0 commit comments