A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
feat(ui): add TimeZonePicker component
robin860f39664ea8
diff --git a/ui/src/components/TimeZonePicker/index.tsx b/ui/src/components/TimeZonePicker/index.tsxnew file mode 100644index 00000000..bd0d0f5c--- /dev/null+++ b/ui/src/components/TimeZonePicker/index.tsx@@ -0,0 +1,25 @@+import { Form } from 'react-bootstrap';++import { TIMEZONES } from '@/common/constants';++const TimeZonePicker = (props) => {+ return (+ <Form.Select {...props}>+ {TIMEZONES?.map((item) => {+ return (+ <optgroup label={item.label} key={item.label}>+ {item.options.map((option) => {+ return (+ <option value={option.value} key={option.value}>+ {option.label}+ </option>+ );+ })}+ </optgroup>+ );+ })}+ </Form.Select>+ );+};++export default TimeZonePicker;