feature(components): prop-type EmptyPlaceholder

This commit is contained in:
Alexander Klein 2021-02-16 12:59:39 +01:00
parent b75ad8eec5
commit 5b80b123fa

View File

@ -1,9 +1,10 @@
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types';
import Icon from 'components/common/Icon'; import Icon from 'components/common/Icon';
import Logo from 'assets/logo.svg'; import Logo from 'assets/logo.svg';
import styles from './EmptyPlaceholder.module.css'; import styles from './EmptyPlaceholder.module.css';
export default function EmptyPlaceholder({ msg, children }) { function EmptyPlaceholder({ msg, children }) {
return ( return (
<div className={styles.placeholder}> <div className={styles.placeholder}>
<Icon className={styles.icon} icon={<Logo />} size="xlarge" /> <Icon className={styles.icon} icon={<Logo />} size="xlarge" />
@ -12,3 +13,10 @@ export default function EmptyPlaceholder({ msg, children }) {
</div> </div>
); );
} }
EmptyPlaceholder.propTypes = {
msg: PropTypes.node,
children: PropTypes.node,
};
export default EmptyPlaceholder;