From 735015c5163d779e846749d2364dad5c603062da Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sat, 4 Mar 2023 00:01:24 +0200 Subject: [PATCH] fix eslint errors --- src/components/App.js | 6 +++--- src/features/machines/components/Machine.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/App.js b/src/components/App.js index 0935b4d..0a74f3d 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -30,8 +30,8 @@ const PrivateRoute = ({ component, ...rest }) => { }; PrivateRoute.propTypes = { - component: PropTypes.node.isRequired, - location: PropTypes.string + component: PropTypes.func.isRequired, + location: PropTypes.object }; const PublicRoute = ({ component, ...rest }) => { @@ -55,7 +55,7 @@ const PublicRoute = ({ component, ...rest }) => { }; PublicRoute.propTypes = { - component: PropTypes.node.isRequired + component: PropTypes.func.isRequired }; const App = () => { diff --git a/src/features/machines/components/Machine.js b/src/features/machines/components/Machine.js index 4e8b22d..629c8a1 100644 --- a/src/features/machines/components/Machine.js +++ b/src/features/machines/components/Machine.js @@ -48,7 +48,7 @@ ActionButton.propTypes = { action: PropTypes.shape({ code: PropTypes.string.isRequired, tooltip: PropTypes.string.isRequired, - system: PropTypes.bool.isRequired, + system: PropTypes.bool, effect: PropTypes.func.isRequired }).isRequired };