mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
feature(components): prop-type NoData
This commit is contained in:
parent
86c2b75e61
commit
86ec5774b6
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user