Add Schedule screen, refactor screens and tz data
This commit is contained in:
17
src/components/General/TimezonesCascader.js
Normal file
17
src/components/General/TimezonesCascader.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import React from 'react';
|
||||
import { timezones } from '../../assets/data/timezones';
|
||||
import { Cascader } from 'rsuite';
|
||||
|
||||
export default function TzDropdown() {
|
||||
// do something here
|
||||
// const handleSelect = event => {
|
||||
// console.log(event)
|
||||
// }
|
||||
|
||||
return (
|
||||
<>
|
||||
<h1>Aha!</h1>
|
||||
<Cascader data={timezones} style={{ width: 224 }} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
import React from 'react';
|
||||
import { timezones } from './../../assets/data/timezones';
|
||||
import { Dropdown } from 'rsuite';
|
||||
|
||||
export default function Tzdropdown() {
|
||||
return (
|
||||
<Dropdown title='Timezone'>
|
||||
{timezones.map((tz) => (
|
||||
<Dropdown.Item key={tz}>{tz}</Dropdown.Item>
|
||||
))}
|
||||
</Dropdown>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user