umwd-components 0.1.617 → 0.1.618

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.
@@ -2,6 +2,7 @@ import { AddressProps } from "../AddressProps";
2
2
  import { Product } from "../e-commerce/product/types";
3
3
  import { ContactsProps } from "../common/Contact";
4
4
  import { BusinessCredentialsProps } from "../e-commerce/BusinessCredentialsProps";
5
+ import { Note } from "./Note";
5
6
  export type Vendor = {
6
7
  id: number;
7
8
  website_url: string;
@@ -13,6 +14,7 @@ export type Vendor = {
13
14
  data: Product[];
14
15
  };
15
16
  contacts: ContactsProps[];
17
+ notes?: Note[];
16
18
  };
17
19
  export type VendorName = {
18
20
  id: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.617",
3
+ "version": "0.1.618",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/src/index.js",
6
6
  "module": "dist/src/index.js",
@@ -27,6 +27,7 @@ import {
27
27
  import { SxProps } from "@mui/material/styles";
28
28
  import { ExplanatoryFoldOut } from "../../../components/ExplanatoryFoldOut";
29
29
  import NoteTakingComponent from "../note/NoteTakingComponent";
30
+ import NotesDisplay from "../note/NotesDisplay";
30
31
 
31
32
  const INITIAL_STATE = {
32
33
  zodErrors: null,
@@ -276,6 +277,13 @@ export function EditVendorForm({
276
277
  <AddIcon />
277
278
  </IconButton>
278
279
  </Grid>
280
+ <Grid item xs={12}>
281
+ {data.notes ? (
282
+ <NotesDisplay notes={data.notes} />
283
+ ) : (
284
+ <Typography>No notes</Typography>
285
+ )}
286
+ </Grid>
279
287
 
280
288
  <Grid item xs={12}>
281
289
  <Stack
@@ -20,6 +20,7 @@ async function getSingleVendor(id: number) {
20
20
  populate: { price: true },
21
21
  },
22
22
  contacts: true,
23
+ notes: true,
23
24
  },
24
25
  });
25
26
 
@@ -2,6 +2,7 @@ import { AddressProps } from "../AddressProps";
2
2
  import { Product } from "../e-commerce/product/types";
3
3
  import { ContactsProps } from "../common/Contact";
4
4
  import { BusinessCredentialsProps } from "../e-commerce/BusinessCredentialsProps";
5
+ import { Note } from "./Note";
5
6
 
6
7
  export type Vendor = {
7
8
  id: number;
@@ -12,6 +13,7 @@ export type Vendor = {
12
13
  address: AddressProps;
13
14
  products: { data: Product[] };
14
15
  contacts: ContactsProps[];
16
+ notes?: Note[];
15
17
  };
16
18
 
17
19
  export type VendorName = {