-
Notifications
You must be signed in to change notification settings - Fork 37
/
Timezone.jsx
37 lines (30 loc) · 1.03 KB
/
Timezone.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import React from 'react'
import Select from 'react-select'
// INFO - GM - 2019-08-20 - this css file doesn't exist
// import 'react-select/dist/react-select.css'
import { translate } from 'react-i18next'
export const Timezone = props => {
const handleChangeTimezone = selectedTimezone => props.onChangeTimezone(props.timezone.find(t => t.place === selectedTimezone.place))
return (
<div className='account__userpreference__setting__timezone'>
<div className='timezone__title subTitle ml-2 ml-sm-0'>
{props.t('Change your Timezone')}
</div>
<div className='timezone__text ml-2 ml-sm-0'>
NYI
</div>
<div className='timezone__time ml-2 ml-sm-0 dropdown'>
<Select
name='timezoneSelect'
className='timezone__time__select'
value={props.timezoneUser}
labelKey='place'
valueKey='place'
options={props.timezone}
onChange={handleChangeTimezone}
/>
</div>
</div>
)
}
export default translate()(Timezone)