diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2017-12-13 14:56:15 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2017-12-19 14:12:42 +0100 |
| commit | e35c46c9e0d4fcd8b146be523550e2a88ff1aecf (patch) | |
| tree | bb175d8cdcffc82cb90ac4103142af0ab3d64251 /app/components/SelectLocation.js | |
| parent | c2031e3eb73d20c4c507d4c8fd56fcf944a8c33b (diff) | |
| download | mullvadvpn-e35c46c9e0d4fcd8b146be523550e2a88ff1aecf.tar.xz mullvadvpn-e35c46c9e0d4fcd8b146be523550e2a88ff1aecf.zip | |
Wire up Accordion
Diffstat (limited to 'app/components/SelectLocation.js')
| -rw-r--r-- | app/components/SelectLocation.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/components/SelectLocation.js b/app/components/SelectLocation.js index f383d09189..9ddfd51faa 100644 --- a/app/components/SelectLocation.js +++ b/app/components/SelectLocation.js @@ -3,6 +3,7 @@ import React, { Component } from 'react'; import { Layout, Container, Header } from './Layout'; import CustomScrollbars from './CustomScrollbars'; +import Accordion from './Accordion'; import ChevronDownSVG from '../assets/images/icon-chevron-down.svg'; import ChevronUpSVG from '../assets/images/icon-chevron-up.svg'; import TickSVG from '../assets/images/icon-tick.svg'; @@ -178,10 +179,10 @@ export default class SelectLocation extends Component { </div> - { isExpanded && countryHasActiveRelays && relayCountry.cities.length > 0 && - (<div className="select-location__cities"> + { countryHasActiveRelays && relayCountry.cities.length > 0 && + (<Accordion className="select-location__cities" height={ isExpanded ? 'auto' : 0 }> { relayCountry.cities.map((relayCity) => this._renderCity(relayCountry.code, relayCity)) } - </div>) + </Accordion>) } </div> ); |
