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