From 86ec5774b6fc135164c8a4159e708eef2e73f90d Mon Sep 17 00:00:00 2001 From: Alexander Klein Date: Tue, 16 Feb 2021 13:32:04 +0100 Subject: [PATCH] feature(components): prop-type NoData --- components/common/NoData.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/components/common/NoData.js b/components/common/NoData.js index bb27c18f..9d523437 100644 --- a/components/common/NoData.js +++ b/components/common/NoData.js @@ -1,12 +1,19 @@ import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { FormattedMessage } from 'react-intl'; import styles from './NoData.module.css'; -export default function NoData({ className }) { +function NoData({ className }) { return (
); } + +NoData.propTypes = { + className: PropTypes.string, +}; + +export default NoData;