summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--app/routes.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/routes.js b/app/routes.js
index 87867791f2..03f3401035 100644
--- a/app/routes.js
+++ b/app/routes.js
@@ -42,6 +42,7 @@ export default function makeRoutes(
// example: <PublicRoute path="/" component={ MyComponent } />
const PublicRoute = ({ component, ...otherProps }: CustomRouteProps) => {
return (
+ // $FlowFixMe: This has been fixed in Flow 0.71
<Route
{...otherProps}
render={(routeProps) => {
@@ -55,6 +56,7 @@ export default function makeRoutes(
// example: <PrivateRoute path="/protected" component={ MyComponent } />
const PrivateRoute = ({ component, ...otherProps }: CustomRouteProps) => {
return (
+ // $FlowFixMe: This has been fixed in Flow 0.71
<Route
{...otherProps}
render={(routeProps) => {
@@ -76,6 +78,7 @@ export default function makeRoutes(
// example: <LoginRoute path="/login" component={ MyComponent } />
const LoginRoute = ({ component, ...otherProps }: CustomRouteProps) => {
return (
+ // $FlowFixMe: This has been fixed in Flow 0.71
<Route
{...otherProps}
render={(routeProps) => {
@@ -96,6 +99,7 @@ export default function makeRoutes(
let previousRoute: ?string;
return (
+ // $FlowFixMe: This has been fixed in Flow 0.71
<Route
render={({ location }) => {
const toRoute = location.pathname;