feature(components): prop-type NoData

This commit is contained in:
Alexander Klein 2021-02-16 13:32:04 +01:00
parent 86c2b75e61
commit 86ec5774b6

View File

@ -1,12 +1,19 @@
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames'; import classNames from 'classnames';
import { FormattedMessage } from 'react-intl'; import { FormattedMessage } from 'react-intl';
import styles from './NoData.module.css'; import styles from './NoData.module.css';
export default function NoData({ className }) { function NoData({ className }) {
return ( return (
<div className={classNames(styles.container, className)}> <div className={classNames(styles.container, className)}>
<FormattedMessage id="message.no-data-available" defaultMessage="No data available." /> <FormattedMessage id="message.no-data-available" defaultMessage="No data available." />
</div> </div>
); );
} }
NoData.propTypes = {
className: PropTypes.string,
};
export default NoData;