umwd-components 0.1.337 → 0.1.340
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/dist/src/components/logistics/ipo/ItemUpdater.js +1 -1
- package/dist/src/components/logistics/ipo/ManageIPOForm.js +1 -1
- package/dist/src/components/logistics/note/NoteTakingComponent.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/logistics/ipo/ItemUpdater.d.ts +2 -2
- package/dist/types/components/logistics/ipo/ManageIPOForm.d.ts +2 -2
- package/dist/types/components/logistics/note/NoteTakingComponent.d.ts +2 -2
- package/package.json +1 -1
- package/src/components/logistics/ipo/ItemUpdater.tsx +3 -6
- package/src/components/logistics/ipo/ManageIPOForm.tsx +1 -0
- package/src/components/logistics/note/NoteTakingComponent.tsx +1 -32
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ItemUpdaterProps } from "../../../types/logistics/Ipo";
|
|
3
|
-
declare function ItemUpdater({ item, index, handleAddReport, handleUpdateQuantity, image, handleRemoveReportAtIndex, }: ItemUpdaterProps):
|
|
3
|
+
declare function ItemUpdater({ item, index, handleAddReport, handleUpdateQuantity, image, handleRemoveReportAtIndex, }: ItemUpdaterProps): React.JSX.Element;
|
|
4
4
|
export default ItemUpdater;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ManageIpoFormProps } from "../../../types/logistics/Ipo";
|
|
3
|
-
export default function ManageIPOForm({ data, sx }: ManageIpoFormProps):
|
|
3
|
+
export default function ManageIPOForm({ data, sx }: ManageIpoFormProps): React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { NoteTakingComponentProps } from "../../../types/logistics/Note";
|
|
3
|
-
export default function NoteTakingComponent({ content, related, }: NoteTakingComponentProps):
|
|
3
|
+
export default function NoteTakingComponent({ content, related, }: NoteTakingComponentProps): React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
1
2
|
import {
|
|
2
3
|
Stack,
|
|
3
4
|
Typography,
|
|
@@ -7,14 +8,10 @@ import {
|
|
|
7
8
|
useTheme,
|
|
8
9
|
} from "@mui/material";
|
|
9
10
|
import AmountUpdater from "../../../components/common/AmountUpdater";
|
|
10
|
-
// TODO import ImagePreviewTooltip from "components/common/ImagePreviewTooltip";
|
|
11
11
|
import ArrowButtonDownIcon from "@mui/icons-material/ArrowDropDown";
|
|
12
|
-
import { useState } from "react";
|
|
13
12
|
|
|
14
|
-
// import ReportDisplay from "components/common/ReportDisplay";
|
|
15
|
-
// import ReportForm from "components/common/ReportForm";
|
|
16
|
-
|
|
17
|
-
import { IpoItem } from "../../../types/logistics/Ipo";
|
|
13
|
+
// TODO import ReportDisplay from "components/common/ReportDisplay";
|
|
14
|
+
// TODO import ReportForm from "components/common/ReportForm";
|
|
18
15
|
|
|
19
16
|
import { ItemUpdaterProps } from "../../../types/logistics/Ipo";
|
|
20
17
|
import ImagePreviewTooltip from "../../../components/common/ImagePreviewTooltip";
|
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Box,
|
|
3
2
|
Button,
|
|
4
3
|
Dialog,
|
|
5
4
|
DialogActions,
|
|
6
5
|
DialogContent,
|
|
7
6
|
Typography,
|
|
8
|
-
useTheme,
|
|
9
7
|
Paper,
|
|
10
8
|
TextField,
|
|
11
|
-
DialogTitle,
|
|
12
9
|
Stack,
|
|
13
10
|
IconButton,
|
|
14
|
-
Icon,
|
|
15
11
|
} from "@mui/material";
|
|
16
|
-
import { useState
|
|
17
|
-
// import { NoteTakingContext } from "context/NoteTakingContext";
|
|
12
|
+
import React, { useState } from "react";
|
|
18
13
|
import { format } from "date-fns";
|
|
19
14
|
import NoteAltIcon from "@mui/icons-material/NoteAlt";
|
|
20
|
-
import EditLocationIcon from "@mui/icons-material/EditLocation";
|
|
21
15
|
import { SubmitButton } from "../../../components/SubmitButton";
|
|
22
16
|
import { StrapiErrors } from "../../StrapiErrors";
|
|
23
17
|
import { useFormState } from "react-dom";
|
|
@@ -36,8 +30,6 @@ export default function NoteTakingComponent({
|
|
|
36
30
|
content,
|
|
37
31
|
related,
|
|
38
32
|
}: NoteTakingComponentProps) {
|
|
39
|
-
const theme = useTheme();
|
|
40
|
-
|
|
41
33
|
const [open, setOpen] = useState(false);
|
|
42
34
|
|
|
43
35
|
const createNoteWithRelationsAction = createNoteAction.bind(null, related);
|
|
@@ -100,29 +92,6 @@ export default function NoteTakingComponent({
|
|
|
100
92
|
{formState?.message && (
|
|
101
93
|
<Alert severity="error">{formState?.message}</Alert>
|
|
102
94
|
)}
|
|
103
|
-
|
|
104
|
-
{/* <Button
|
|
105
|
-
onClick={async (e) => {
|
|
106
|
-
/* const newNote = await handleCreateNote(e);
|
|
107
|
-
console.log("newNote", newNote);
|
|
108
|
-
if (parentEntity?.id) {
|
|
109
|
-
// update the parentEntity to include the new note
|
|
110
|
-
console.log(
|
|
111
|
-
"update the parentEntity,",
|
|
112
|
-
parentEntity.id,
|
|
113
|
-
", to include the new note: ",
|
|
114
|
-
newNote.data.id
|
|
115
|
-
);
|
|
116
|
-
parentEntity?.attachNoteCallback(newNote.data.id);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
const newMessagesArr = [newNote.message];
|
|
120
|
-
handleAddMessages(newMessagesArr);
|
|
121
|
-
setOpen(false);
|
|
122
|
-
}}
|
|
123
|
-
>
|
|
124
|
-
Confirm
|
|
125
|
-
</Button> */}
|
|
126
95
|
</DialogActions>
|
|
127
96
|
</form>
|
|
128
97
|
</Dialog>
|