Skip to content

Commit

Permalink
Remove FullscreenLoadingIndicator class description
Browse files Browse the repository at this point in the history
Other components do not use class description
Removed to be uniform with the rest of our components
  • Loading branch information
kidroca committed Apr 4, 2022
1 parent cd397ae commit 2e50713
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/components/FullscreenLoadingIndicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,14 @@ const defaultProps = {
logDetail: null,
};

/**
* Loading indication component intended to cover the whole page, while the page prepares for initial render
*
* @param {Object} props
* @returns {JSX.Element}
*/
class FullScreenLoadingIndicator extends React.Component {
componentDidMount() {
if (!this.props.logDetail) {
return;
}

if (!this.props.logDetail.name) {
throw new Error('A name should be set to distinct logged messages. Please check the `logDetails` prop');
throw new Error('A name should be set to distinct logged messages. Please check the `logDetails` prop.');
}

Log.info('[LoadingIndicator] Became visible', false, this.props.logDetail);
Expand Down

0 comments on commit 2e50713

Please sign in to comment.