SumOfUs/Champaign

View on GitHub
app/javascript/components/LoadingThen.js

Summary

Maintainability
A
1 hr
Test Coverage
import React from 'react';
import { FormattedMessage } from 'react-intl';

export default props => {
  if (props.loading) {
    return <FormattedMessage id="loading" defaultMessage="Loading..." />;
  }

  return <span>{props.children}</span>;
};