summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-06-15 17:48:14 +0200
committerAndrej Mihajlov <and@mullvad.net>2018-06-20 15:36:17 +0200
commit46125ddac41dd0b5915940a5e9cf0e9b547c56d9 (patch)
tree729ba24a400cdbe369a4c138469d7d772acd09c7
parent7e7bcabb699f60ea93bc391dbea313511dc864d8 (diff)
downloadmullvadvpn-46125ddac41dd0b5915940a5e9cf0e9b547c56d9.tar.xz
mullvadvpn-46125ddac41dd0b5915940a5e9cf0e9b547c56d9.zip
Fix flow warnings
-rw-r--r--app/routes.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/app/routes.js b/app/routes.js
index 03f3401035..c48e03dac3 100644
--- a/app/routes.js
+++ b/app/routes.js
@@ -21,10 +21,6 @@ export type SharedRouteProps = {
backend: Backend,
};
-type CustomRouteProps = {
- component: React.ComponentType<*>,
-};
-
export default function makeRoutes(
getState: ReduxGetState,
componentProps: SharedRouteProps,
@@ -40,7 +36,7 @@ export default function makeRoutes(
// Renders public route
// example: <PublicRoute path="/" component={ MyComponent } />
- const PublicRoute = ({ component, ...otherProps }: CustomRouteProps) => {
+ const PublicRoute = ({ component, ...otherProps }) => {
return (
// $FlowFixMe: This has been fixed in Flow 0.71
<Route
@@ -54,7 +50,7 @@ export default function makeRoutes(
// Renders protected route that requires authentication, otherwise redirects to /
// example: <PrivateRoute path="/protected" component={ MyComponent } />
- const PrivateRoute = ({ component, ...otherProps }: CustomRouteProps) => {
+ const PrivateRoute = ({ component, ...otherProps }) => {
return (
// $FlowFixMe: This has been fixed in Flow 0.71
<Route
@@ -76,7 +72,7 @@ export default function makeRoutes(
// Renders login route that is only available to non-authenticated
// users. Otherwise this route redirects user to /connect.
// example: <LoginRoute path="/login" component={ MyComponent } />
- const LoginRoute = ({ component, ...otherProps }: CustomRouteProps) => {
+ const LoginRoute = ({ component, ...otherProps }) => {
return (
// $FlowFixMe: This has been fixed in Flow 0.71
<Route