mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 19:12:50 +00:00
Revert "Replace TextInput with AmharicDatePicker for date fields in SeaServiceTab and MedicalTab"
This reverts commit 34ae207834.
This commit is contained in:
@@ -31,7 +31,7 @@ import {
|
||||
IconTrash,
|
||||
} from '@tabler/icons-react';
|
||||
import { useState } from 'react';
|
||||
import { AdvancedTable, AmharicDatePicker, notify, useServerTable, type AdvancedColumn } from '@ema-platform/ui';
|
||||
import { AdvancedTable, notify, useServerTable, type AdvancedColumn } from '@ema-platform/ui';
|
||||
import {
|
||||
extractErrorMessage,
|
||||
uploadDocument,
|
||||
@@ -399,19 +399,23 @@ function SeaServiceTab() {
|
||||
onChange={(e) => setForm({ ...form, rank: e.target.value })}
|
||||
/>
|
||||
<Group grow>
|
||||
<AmharicDatePicker
|
||||
<TextInput
|
||||
type="date"
|
||||
label="Engagement date"
|
||||
required
|
||||
dateFormat="date"
|
||||
value={form.engagementDate}
|
||||
onChange={(val) => setForm({ ...form, engagementDate: val })}
|
||||
onChange={(e) =>
|
||||
setForm({ ...form, engagementDate: e.target.value })
|
||||
}
|
||||
/>
|
||||
<AmharicDatePicker
|
||||
<TextInput
|
||||
type="date"
|
||||
label="Discharge date"
|
||||
required
|
||||
dateFormat="date"
|
||||
value={form.dischargeDate}
|
||||
onChange={(val) => setForm({ ...form, dischargeDate: val })}
|
||||
onChange={(e) =>
|
||||
setForm({ ...form, dischargeDate: e.target.value })
|
||||
}
|
||||
/>
|
||||
</Group>
|
||||
<Textarea
|
||||
@@ -678,19 +682,19 @@ function MedicalTab() {
|
||||
/>
|
||||
</Group>
|
||||
<Group grow>
|
||||
<AmharicDatePicker
|
||||
<TextInput
|
||||
type="date"
|
||||
label="Issue date"
|
||||
required
|
||||
dateFormat="date"
|
||||
value={form.issueDate}
|
||||
onChange={(val) => setForm({ ...form, issueDate: val })}
|
||||
onChange={(e) => setForm({ ...form, issueDate: e.target.value })}
|
||||
/>
|
||||
<AmharicDatePicker
|
||||
<TextInput
|
||||
type="date"
|
||||
label="Expiry date"
|
||||
required
|
||||
dateFormat="date"
|
||||
value={form.expiryDate}
|
||||
onChange={(val) => setForm({ ...form, expiryDate: val })}
|
||||
onChange={(e) => setForm({ ...form, expiryDate: e.target.value })}
|
||||
/>
|
||||
</Group>
|
||||
<Select
|
||||
|
||||
Reference in New Issue
Block a user