Skip to content

Commit

Permalink
Drtii 1557 min staff 1 (#45)
Browse files Browse the repository at this point in the history
* Adding add min staff alert

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* remove strong

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* adding form to update min staff number

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* Adding min staff form for export

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* adding continueCallback for update

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* Change success icon and colors

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* adding test for min staff form and warning component

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* using AddCircleOutlineOutlinedIcon for adding min staff

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* remove icon on continue

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* separating min staff update sucess component

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* Update index for export IMinSuccess Type

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* adding close success handler

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* adding cancel to mins staff form

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* adding decimal error check

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* remove colon

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* update title

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* adding text change

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* fix test and update esbuild

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* Initial submit shift staff form

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* DRTII-1557 adding json for handle submit

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* using IShiftStaffForm instead if individual fields

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* addin export for shift staff to index

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* adding optional ssf

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* adding edit shift staff form

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* updating minstaffSucces to staffSuccess

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* updating edit shif staff

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* remove moment in initialization

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* rename ess to essf

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* using AdapterMoment an removing null

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* update handle change event with adapter date

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>

* change width of edit form

* adding summary of selection

* date format DD-MM-YYY

Signed-off-by: Nilesh Gupta <guptanilesh13@gmail.com>

* updating date format and 24 time format for edit form

Signed-off-by: Nilesh Gupta <guptanilesh13@gmail.com>

* adding style changes to edit shift form

Signed-off-by: Nilesh Gupta <guptanilesh13@gmail.com>

* fixing setting date issue

Signed-off-by: Nilesh Gupta <guptanilesh13@gmail.com>

* fixing day and remove border

Signed-off-by: Nilesh Gupta <guptanilesh13@gmail.com>

* moving 2nd line padding by 2 pixel in summary as it is lookinn bit left in drt

Signed-off-by: Nilesh Gupta <guptanilesh13@gmail.com>

* update edit form

Signed-off-by: Nilesh Gupta <guptanilesh13@gmail.com>

* removing unused components

Signed-off-by: Nilesh Gupta <guptanilesh13@gmail.com>

* update time range form

Signed-off-by: Nilesh Gupta <guptanilesh13@gmail.com>

* fixing 2 space indent and remove renderInput for date picker

Signed-off-by: Nilesh Gupta <guptanilesh13@gmail.com>

* adding slot to datapicker to remove warning

Signed-off-by: Nilesh Gupta <guptanilesh13@gmail.com>

---------

Signed-off-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>
Signed-off-by: Nilesh Gupta <guptanilesh13@gmail.com>
Co-authored-by: Nilesh Gupta <nilesh.nemichandgupta@digital.homeoffice.gov.uk>
Co-authored-by: Nilesh Gupta <nilesh@Nileshs-Mac-Studio.local>
  • Loading branch information
3 people authored Nov 6, 2024
1 parent 40d2e91 commit 6e121ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@drt/drt-react-components",
"version": "1.5.4",
"version": "1.5.5",
"description": "React components for DRT applications",
"main": "dist/cjs/bundle.js",
"module": "dist/esm/bundle.js",
Expand Down
5 changes: 4 additions & 1 deletion src/components/Staff/UpdateStaffForTimeRangeForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ export const UpdateStaffForTimeRangeForm = ({
<LocalizationProvider dateAdapter={AdapterMoment} adapterLocale={'en-gb'}>
<DatePicker sx={{backgroundColor: '#FFFFFF', width: '100%'}} label="Start Date" value={startDate}
onChange={handleStartDateChange}
format="DD MMMM YYYY"/>
format="DD MMMM YYYY"
slots={{ textField: (params) => <TextField {...params} /> }}
/>
</LocalizationProvider>
</Box>
<Box sx={{paddingTop: '10px'}}>
Expand All @@ -122,6 +124,7 @@ export const UpdateStaffForTimeRangeForm = ({
value={endDate}
onChange={handleEndDateChange}
format="DD MMMM YYYY"
slots={{ textField: (params) => <TextField {...params} /> }}
/>
</LocalizationProvider>
</Box>
Expand Down

0 comments on commit 6e121ab

Please sign in to comment.