fix eslint errors

master
Tudor Stanciu 2023-03-04 00:01:24 +02:00
parent 956d7b34ff
commit 735015c516
2 changed files with 4 additions and 4 deletions

View File

@ -30,8 +30,8 @@ const PrivateRoute = ({ component, ...rest }) => {
}; };
PrivateRoute.propTypes = { PrivateRoute.propTypes = {
component: PropTypes.node.isRequired, component: PropTypes.func.isRequired,
location: PropTypes.string location: PropTypes.object
}; };
const PublicRoute = ({ component, ...rest }) => { const PublicRoute = ({ component, ...rest }) => {
@ -55,7 +55,7 @@ const PublicRoute = ({ component, ...rest }) => {
}; };
PublicRoute.propTypes = { PublicRoute.propTypes = {
component: PropTypes.node.isRequired component: PropTypes.func.isRequired
}; };
const App = () => { const App = () => {

View File

@ -48,7 +48,7 @@ ActionButton.propTypes = {
action: PropTypes.shape({ action: PropTypes.shape({
code: PropTypes.string.isRequired, code: PropTypes.string.isRequired,
tooltip: PropTypes.string.isRequired, tooltip: PropTypes.string.isRequired,
system: PropTypes.bool.isRequired, system: PropTypes.bool,
effect: PropTypes.func.isRequired effect: PropTypes.func.isRequired
}).isRequired }).isRequired
}; };