diff --git a/src/app/features/settings/account/TimezoneEditor.tsx b/src/app/features/settings/account/TimezoneEditor.tsx index 7f85c974f..7d28399a5 100644 --- a/src/app/features/settings/account/TimezoneEditor.tsx +++ b/src/app/features/settings/account/TimezoneEditor.tsx @@ -1,5 +1,5 @@ import { useMemo, useState, useEffect, ChangeEvent } from 'react'; -import { Box, IconButton, Icon, Icons, Input } from 'folds'; +import { Box, IconButton, Button, Icon, Icons, Input, Text } from 'folds'; import { SettingTile } from '$components/setting-tile'; interface IntlWithSupportedValues { @@ -26,6 +26,11 @@ export function TimezoneEditor({ current, onSave }: TimezoneEditorProps) { onSave(systemTz); }; + const handleReset = () => { + setVal(''); + onSave(''); + }; + const handleManualSave = () => { const trimmed = val.trim().slice(0, 64); const matchedZone = zones.find((z) => z.toLowerCase() === trimmed.toLowerCase()); @@ -64,14 +69,25 @@ export function TimezoneEditor({ current, onSave }: TimezoneEditorProps) { ))} + - + }