diff --git a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsCalendarDateFormatSelect.tsx b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsCalendarDateFormatSelect.tsx new file mode 100644 index 000000000..278af533e --- /dev/null +++ b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsCalendarDateFormatSelect.tsx @@ -0,0 +1,34 @@ +import { formatInTimeZone } from 'date-fns-tz'; + +import { DateFormat } from '@/settings/accounts/constants/DateFormat'; +import { Select } from '@/ui/input/components/Select'; + +type SettingsAccountsCalendarDateFormatSelectProps = { + value: DateFormat; + onChange: (nextValue: DateFormat) => void; + timeZone: string; +}; + +export const SettingsAccountsCalendarDateFormatSelect = ({ + onChange, + timeZone, + value, +}: SettingsAccountsCalendarDateFormatSelectProps) => ( + + ); diff --git a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsCalendarTimeFormatSelect.tsx b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsCalendarTimeFormatSelect.tsx new file mode 100644 index 000000000..cab95257d --- /dev/null +++ b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsCalendarTimeFormatSelect.tsx @@ -0,0 +1,42 @@ +import { formatInTimeZone } from 'date-fns-tz'; + +import { TimeFormat } from '@/settings/accounts/constants/TimeFormat'; +import { Select } from '@/ui/input/components/Select'; + +type SettingsAccountsCalendarTimeFormatSelectProps = { + value: TimeFormat; + onChange: (nextValue: TimeFormat) => void; + timeZone: string; +}; + +export const SettingsAccountsCalendarTimeFormatSelect = ({ + onChange, + timeZone, + value, +}: SettingsAccountsCalendarTimeFormatSelectProps) => ( +