diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-06-18 08:41:44 -0300 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-06-18 08:41:44 -0300 |
| commit | 8c4f4a05fbb776e747e9ff10ea626cf85e188571 (patch) | |
| tree | 20ce3a2821e993e9a5d991ca465ff2f671ad6c1e | |
| parent | e1aacb16667a5fdce94a5126961359d511d19821 (diff) | |
| parent | 8c1ea4a3cf156b5f2c5b6acee3e33f9bee60ee66 (diff) | |
| download | mullvadvpn-8c4f4a05fbb776e747e9ff10ea626cf85e188571.tar.xz mullvadvpn-8c4f4a05fbb776e747e9ff10ea626cf85e188571.zip | |
Merge branch 'ignore-flow-errors-in-routes'
| -rw-r--r-- | app/routes.js | 4 |
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; |
