summaryrefslogtreecommitdiffhomepage
path: root/app/components/SelectLocation.js
diff options
context:
space:
mode:
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) {