feat: add missing propTypes

This commit is contained in:
kasia.oczkowska
2024-06-05 13:26:56 +01:00
parent 725b38c697
commit 3f5df118a0
53 changed files with 597 additions and 81 deletions

View File

@@ -4,9 +4,11 @@ import Card from '@mui/material/Card';
import AddCircleIcon from '@mui/icons-material/AddCircle';
import CardActionArea from '@mui/material/CardActionArea';
import Typography from '@mui/material/Typography';
import PropTypes from 'prop-types';
import { CardContent } from './style';
export default function NoResultFound(props) {
function NoResultFound(props) {
const { text, to } = props;
const ActionAreaLink = React.useMemo(
@@ -29,3 +31,10 @@ export default function NoResultFound(props) {
</Card>
);
}
NoResultFound.propTypes = {
text: PropTypes.string,
to: PropTypes.string,
};
export default NoResultFound;