feat: add missing propTypes
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user