diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-07-18 20:07:12 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-07-18 20:07:12 +0200 |
| commit | ec6248d4a431c91c6a437e5a4897911d4701347b (patch) | |
| tree | 2809d5ba60811a2bdbbad56a4e6106d0f8f583b5 /app/components/SelectLocation.js | |
| parent | 9f0ed3cc4878edac9aa8ae67fae366cb1d0bf588 (diff) | |
| parent | 75adfa317377a7150955ece2f59379ca3d89321f (diff) | |
| download | mullvadvpn-ec6248d4a431c91c6a437e5a4897911d4701347b.tar.xz mullvadvpn-ec6248d4a431c91c6a437e5a4897911d4701347b.zip | |
Merge branch 'reintegrate-styled-classes'
Diffstat (limited to 'app/components/SelectLocation.js')
| -rw-r--r-- | app/components/SelectLocation.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/app/components/SelectLocation.js b/app/components/SelectLocation.js index 14d0a04f9c..6c7087e451 100644 --- a/app/components/SelectLocation.js +++ b/app/components/SelectLocation.js @@ -1,9 +1,9 @@ // @flow import * as React from 'react'; +import { Button, Text, View } from 'reactxp'; import { Layout, Container } from './Layout'; import CustomScrollbars from './CustomScrollbars'; -import { Text, View } from 'reactxp'; -import { Button, CellButton, Label } from './styled'; +import * as Cell from './Cell'; import styles from './SelectLocationStyles'; import Img from './Img'; @@ -27,7 +27,7 @@ type State = { }; export default class SelectLocation extends React.Component<SelectLocationProps, State> { - _selectedCell: ?CellButton; + _selectedCell: ?Cell.CellButton; _scrollView: ?CustomScrollbars; state = { @@ -163,7 +163,7 @@ export default class SelectLocation extends React.Component<SelectLocationProps, return ( <View key={relayCountry.code} style={styles.country}> - <CellButton + <Cell.CellButton cellHoverStyle={isSelected ? styles.cell_selected : null} style={isSelected ? styles.cell_selected : styles.cell} onPress={handleSelect} @@ -171,7 +171,7 @@ export default class SelectLocation extends React.Component<SelectLocationProps, testName="country"> {this._relayStatusIndicator(relayCountry.hasActiveRelays, isSelected)} - <Label>{relayCountry.name}</Label> + <Cell.Label>{relayCountry.name}</Cell.Label> {relayCountry.cities.length > 1 ? ( <Img @@ -183,7 +183,7 @@ export default class SelectLocation extends React.Component<SelectLocationProps, width={24} /> ) : null} - </CellButton> + </Cell.CellButton> {relayCountry.cities.length > 1 && ( <Accordion height={isExpanded ? 'auto' : 0}> @@ -213,7 +213,7 @@ export default class SelectLocation extends React.Component<SelectLocationProps, : undefined; return ( - <CellButton + <Cell.CellButton key={`${countryCode}_${relayCity.code}`} onPress={handleSelect} disabled={!relayCity.hasActiveRelays} @@ -223,8 +223,8 @@ export default class SelectLocation extends React.Component<SelectLocationProps, ref={onRef}> {this._relayStatusIndicator(relayCity.hasActiveRelays, isSelected)} - <Label>{relayCity.name}</Label> - </CellButton> + <Cell.Label>{relayCity.name}</Cell.Label> + </Cell.CellButton> ); } } |
