summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@codeispoetry.ru>2017-06-30 19:27:25 +0300
committerAndrej Mihajlov <and@codeispoetry.ru>2017-06-30 23:58:44 +0300
commit99ae6c3fd0840d9ff06c105c7208f35d4551578f (patch)
tree977c616c1c1124b307db8ad60d33c5d2f90109e8
parentdabb402082623d892a685e39ffe49fc52fa6d226 (diff)
downloadmullvadvpn-99ae6c3fd0840d9ff06c105c7208f35d4551578f.tar.xz
mullvadvpn-99ae6c3fd0840d9ff06c105c7208f35d4551578f.zip
Export Connect props
-rw-r--r--app/components/Connect.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/app/components/Connect.js b/app/components/Connect.js
index 6ffb516ec6..7b3e1d7421 100644
--- a/app/components/Connect.js
+++ b/app/components/Connect.js
@@ -22,21 +22,21 @@ type DisplayLocation = {
city: ?string;
};
-export default class Connect extends Component {
-
- props: {
- user: UserReduxState,
- connect: ConnectReduxState,
- settings: SettingsReduxState,
- onSettings: () => void,
- onSelectLocation: () => void,
- onConnect: (address: string) => void,
- onCopyIP: () => void,
- onDisconnect: () => void,
- onExternalLink: (type: string) => void,
- getServerInfo: (identifier: string) => ?ServerInfo
- };
+export type ConnectProps = {
+ user: UserReduxState,
+ connect: ConnectReduxState,
+ settings: SettingsReduxState,
+ onSettings: () => void,
+ onSelectLocation: () => void,
+ onConnect: (address: string) => void,
+ onCopyIP: () => void,
+ onDisconnect: () => void,
+ onExternalLink: (type: string) => void,
+ getServerInfo: (identifier: string) => ?ServerInfo
+};
+export default class Connect extends Component {
+ props: ConnectProps;
state = {
isFirstPass: true,
showCopyIPMessage: false