Skip to content

Commit

Permalink
comment out route proptypes
Browse files Browse the repository at this point in the history
  • Loading branch information
raclim committed Oct 12, 2023
1 parent 9321d6f commit 3926375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/routes.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import PropTypes from 'prop-types';
// import PropTypes from 'prop-types';
import React, { useEffect } from 'react';
import { useDispatch } from 'react-redux';
import { Route as RouterRoute, Switch } from 'react-router-dom';
Expand Down Expand Up @@ -49,7 +49,7 @@ const Route = ({ component, ...props }) => (
<RouterRoute component={withParams(component)} {...props} />
);
Route.propTypes = { ...RouterRoute.propTypes };
Route.propTypes.component = PropTypes.elementType.isRequired;
// Route.propTypes.component = PropTypes.elementType.isRequired;

const routes = (
<Switch>
Expand Down

0 comments on commit 3926375

Please sign in to comment.