umwd-components 0.1.803 → 0.1.804

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.
@@ -63,7 +63,13 @@ function NoteTakingComponent({ content, related, revalidateCallback, }) {
63
63
  background: "linear-gradient(135deg, #ffff88 81%,#ffff88 82%,#ffff88 82%,#ffffc6 100%)",
64
64
  color: "black",
65
65
  p: 1,
66
- }, children: jsxs(Stack, { spacing: 2, children: [jsx(Typography, { variant: "body1", textAlign: "right", children: dayjs(Date.now()).format("DD-MM-YYYY") }), jsx(MarkdownEditor, { name: "content", label: "The note", defaultValue: content, sx: {
66
+ }, children: jsxs(Stack, { spacing: 2, children: [jsxs(Typography, { variant: "body1", textAlign: "right", children: ["related to:", " ", jsx("span", { style: { fontWeight: "bold" }, children: related && related.length > 0
67
+ ? related
68
+ .map((rel) => {
69
+ return rel.id;
70
+ })
71
+ .join(", ")
72
+ : "No Relation Provided" })] }), jsxs(Typography, { variant: "body1", textAlign: "right", children: ["date:", " ", jsx("span", { style: { fontWeight: "bold" }, children: dayjs(Date.now()).format("DD-MM-YYYY") })] }), jsx(MarkdownEditor, { name: "content", label: "The note", defaultValue: content, sx: {
67
73
  color: "black",
68
74
  label: { color: "black" },
69
75
  input: { color: "black" },
@@ -44,7 +44,7 @@ async function createNoteAction(related, prevState, formData) {
44
44
  related,
45
45
  },
46
46
  };
47
- console.log(noteData.data.related);
47
+ console.log("notedata", noteData.data.related);
48
48
  const responseData = await mutateData("POST", `/api/notes`, noteData);
49
49
  console.log("responseData", responseData);
50
50
  if (!responseData) {