-
-
{t('dashboard.startDate')}
-
{ if (canEditTrip) changeStart(v) }}
- placeholder={t('dashboard.startDate')}
- borderless
- style={{ marginTop: 3 }}
- />
+
+
+
+
{t('dashboard.startDate')}
+
+ { if (canEditTrip) changeStart(v) }}
+ placeholder={t('dashboard.startDate')}
+ borderless
+ />
+
+
+
+
{t('dashboard.endDate')}
+
+ { if (canEditTrip) { setError(''); setEndDate(v) } }}
+ placeholder={t('dashboard.endDate')}
+ borderless
+ />
+
+
-
- {t('dashboard.endDate')}
- { if (canEditTrip) { setError(''); setEndDate(v) } }}
- placeholder={t('dashboard.endDate')}
- borderless
- style={{ marginTop: 3 }}
- />
-
-
- {!startDate && !endDate && (
- <>
-
- {t('dashboard.dayCount')}
+ {!startDate && !endDate && (
+ <>
+ {t('dashboard.dayCount')}
-
- {!isEditing &&
{t('dashboard.noDateHint')}
}
- >
- )}
+ {!isEditing &&
{t('dashboard.noDateHint')}
}
+ >
+ )}
+
-
- {t('dashboard.currency')}
+
{ if (canEditTrip) { setError(''); setCurrency(String(v)) } }}
@@ -253,48 +247,46 @@ export default function MNewTripSheet({ open, trip: tripProp, onClose, onSave, o
searchable
size="sm"
options={currenciesWith(currency).map(c => ({ value: c, label: `${c} (${SYMBOLS[c] || c})` }))}
- style={{ width: '100%', marginTop: 5 }}
+ style={{ width: '100%' }}
/>
-
+
{showReminder && (
-
{ setError(''); setReminderDays(days); setCustomReminder(false) }}
- onCustom={() => { setCustomReminder(true); if (REMINDER_PRESETS.includes(reminderDays)) setReminderDays(7) }}
- onDays={setReminderDays}
- />
+
+ { setError(''); setReminderDays(days); setCustomReminder(false) }}
+ onCustom={() => { setCustomReminder(true); if (REMINDER_PRESETS.includes(reminderDays)) setReminderDays(7) }}
+ onDays={setReminderDays}
+ />
+
)}
- {canUploadCover && }
+ {canUploadCover && (
+
+
+
+ )}
{isEditing && onArchive && (
-
- { onArchive(); onClose() }}
- />
-
+
)}