summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2018-06-15 14:20:20 -0300
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2018-06-18 08:29:17 -0300
commit8c1ea4a3cf156b5f2c5b6acee3e33f9bee60ee66 (patch)
tree20ce3a2821e993e9a5d991ca465ff2f671ad6c1e
parente1aacb16667a5fdce94a5126961359d511d19821 (diff)
downloadmullvadvpn-8c1ea4a3cf156b5f2c5b6acee3e33f9bee60ee66.tar.xz
mullvadvpn-8c1ea4a3cf156b5f2c5b6acee3e33f9bee60ee66.zip
Ignore flow errors in `app/routes.js`
Although they can be fixed by updating to Flow 0.71, the `validated` package is not compatible with that version.
-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;