umwd-components 0.1.646 → 0.1.647

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.646",
3
+ "version": "0.1.647",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/src/index.js",
6
6
  "module": "dist/src/index.js",
@@ -83,6 +83,7 @@ function ConfirmFormDialog({
83
83
  onClick={(e) => {
84
84
  confirmationService("ipos", [orderID]);
85
85
  revalidateCallback && revalidateCallback();
86
+ handleClose();
86
87
  }}
87
88
  >
88
89
  Confirm
@@ -396,11 +397,14 @@ export default function TextualManageIPOForm({
396
397
  <IpoStatusIndicator status={data.status} />
397
398
  </Stack>
398
399
  </Stack>
400
+ </Paper>
401
+ </Grid>
399
402
 
400
- {(data.status === "placed" ||
401
- data.status === "released_on_stock") &&
402
- role === "enduser" && (
403
- <>
403
+ {(data.status === "placed" || data.status === "released_on_stock") &&
404
+ role === "enduser" && (
405
+ <Grid item xs={6}>
406
+ <Paper elevation={2} sx={{ p: 2, height: "100%" }}>
407
+ <Stack spacing={2}>
404
408
  <Button
405
409
  variant="contained"
406
410
  color="primary"
@@ -412,6 +416,13 @@ export default function TextualManageIPOForm({
412
416
  Please confirm the order as soon as possible, only upon
413
417
  confirmation this order will be available to the dispatcher
414
418
  </Alert>
419
+ <Button
420
+ variant="contained"
421
+ color="error"
422
+ onClick={() => setCancelDialogOpen(true)}
423
+ >
424
+ Cancel order
425
+ </Button>
415
426
  <ConfirmFormDialog
416
427
  open={confirmDialogOpen}
417
428
  handleClose={() => setConfirmDialogOpen(false)}
@@ -425,10 +436,10 @@ export default function TextualManageIPOForm({
425
436
  orderID={data.id}
426
437
  revalidateCallback={revalidateCallback}
427
438
  />
428
- </>
429
- )}
430
- </Paper>
431
- </Grid>
439
+ </Stack>
440
+ </Paper>
441
+ </Grid>
442
+ )}
432
443
  <Grid item xs={12}>
433
444
  <Stack spacing={2}>
434
445
  <Typography variant="h5">Documents</Typography>