Skip to content

Commit

Permalink
Merge pull request #973 from DeepBlueCLtd/953_edit_departure_date_use…
Browse files Browse the repository at this point in the history
…redit

Departure date edit able issue resolved
  • Loading branch information
IanMayo authored Jan 2, 2024
2 parents efff9ef + 24e3d15 commit f5a12d4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/resources/users/UserForm.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import React from 'react'
import { SimpleForm, TextInput, useEditContext, SelectInput } from 'react-admin'
import {
SimpleForm,
TextInput,
useEditContext,
SelectInput,
DateTimeInput
} from 'react-admin'
import { yupResolver } from '@hookform/resolvers/yup'
import * as yup from 'yup'
import EditToolBar from '../../components/EditToolBar'
Expand Down Expand Up @@ -59,6 +65,11 @@ export default function UserForm({ isEdit }: FormProps): React.ReactElement {
/>
<TextInput source='staffNumber' label='Username' sx={{ flex: 1 }} />
</FlexBox>
<DateTimeInput
source='departedDate'
label='Departure Date'
sx={{ width: '50%' }}
/>
</SimpleForm>
)
}

0 comments on commit f5a12d4

Please sign in to comment.