Skip to content

Commit d265890

Browse files
author
Dan Carbonell
committed
pr comments
1 parent 4724722 commit d265890

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/components/Indicators/LoadingIndicator.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ const LoadingText = styled.Text`
1818
${({ theme }) => theme.loadingIndicator.loadingText.css}
1919
`;
2020

21-
const LoadingIndicator = (props) => {
22-
const { listType, loadingText } = props;
21+
const LoadingIndicator = ({ listType = 'default', loadingText }) => {
2322
const { t } = useContext(TranslationContext);
2423
let indicatorText = '';
2524

@@ -48,8 +47,4 @@ LoadingIndicator.propTypes = {
4847
loadingText: PropTypes.string,
4948
};
5049

51-
LoadingIndicator.defaultProps = {
52-
listType: 'default',
53-
};
54-
5550
export default LoadingIndicator;

0 commit comments

Comments
 (0)