fix eslint errors
parent
956d7b34ff
commit
735015c516
|
@ -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 = () => {
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue