summaryrefslogtreecommitdiffhomepage
path: root/app/components/SelectLocation.js
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-02-21 10:45:11 +0100
committerAndrej Mihajlov <and@mullvad.net>2018-02-21 10:45:11 +0100
commitde737c54c413f96c35b4e9bc6280fc7d26e4fa83 (patch)
tree0cf470c59b4c7c8a6327e64610f68f5facd78d6d /app/components/SelectLocation.js
parentae9c255b3ecdec341090c932db6cb261147a7382 (diff)
parent1214138633bcca19a1b96622400f3fbcf4044bd9 (diff)
downloadmullvadvpn-de737c54c413f96c35b4e9bc6280fc7d26e4fa83.tar.xz
mullvadvpn-de737c54c413f96c35b4e9bc6280fc7d26e4fa83.zip
Merge branch 'update-flow'
Diffstat (limited to 'app/components/SelectLocation.js')
-rw-r--r--app/components/SelectLocation.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/app/components/SelectLocation.js b/app/components/SelectLocation.js
index 12cde94211..946a275146 100644
--- a/app/components/SelectLocation.js
+++ b/app/components/SelectLocation.js
@@ -1,5 +1,5 @@
// @flow
-import React, { Component } from 'react';
+import * as React from 'react';
import { Layout, Container, Header } from './Layout';
import CustomScrollbars from './CustomScrollbars';
@@ -17,12 +17,15 @@ export type SelectLocationProps = {
onSelect: (location: RelayLocation) => void;
};
-export default class SelectLocation extends Component {
- props: SelectLocationProps;
+type State = {
+ expanded: Array<string>
+};
+
+export default class SelectLocation extends React.Component<SelectLocationProps, State> {
_selectedCell: ?HTMLElement;
state = {
- expanded: ([]: Array<string>),
+ expanded: [],
};
constructor(props: SelectLocationProps, context?: any) {