contentoh-components-library 21.4.1 → 21.4.3

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.
@@ -97,6 +97,7 @@ var UserOption = function UserOption(_ref) {
97
97
  onClick: function onClick() {
98
98
  return setShowSelector(true);
99
99
  },
100
+ id: id,
100
101
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
101
102
  className: "image-and-name",
102
103
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
@@ -70,6 +70,7 @@ var getProductsToTable = function getProductsToTable() {
70
70
  datasheet: article.id_datasheet_especialist,
71
71
  description: article.id_description_especialist,
72
72
  images: article.id_images_especialist,
73
+ auditor: article.id_auditor,
73
74
  textSpecialists: textSpecialists,
74
75
  imagesSpecialists: imagesSpecialists,
75
76
  auditors: auditors,
@@ -21,6 +21,7 @@ var useCloseModal = function useCloseModal(id) {
21
21
  e.stopPropagation();
22
22
 
23
23
  if (!e.target.closest("#".concat(id)) && showModal) {
24
+ console.log(id);
24
25
  document.removeEventListener("click", closeModal, false);
25
26
  setShowModal(false);
26
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.4.1",
3
+ "version": "21.4.3",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -57,7 +57,7 @@ export const UserOption = ({
57
57
  }, [index]);
58
58
 
59
59
  return (
60
- <Container onClick={() => setShowSelector(true)}>
60
+ <Container onClick={() => setShowSelector(true)} id={id}>
61
61
  <div className="image-and-name">
62
62
  <Avatar
63
63
  image={getProfilePicture(userAssigned?.id_user, 26, 26)}
@@ -42,6 +42,7 @@ export const getProductsToTable = (
42
42
  datasheet={article.id_datasheet_especialist}
43
43
  description={article.id_description_especialist}
44
44
  images={article.id_images_especialist}
45
+ auditor={article.id_auditor}
45
46
  textSpecialists={textSpecialists}
46
47
  imagesSpecialists={imagesSpecialists}
47
48
  auditors={auditors}
@@ -6,6 +6,7 @@ export const useCloseModal = (id) => {
6
6
  const closeModal = (e) => {
7
7
  e.stopPropagation();
8
8
  if (!e.target.closest(`#${id}`) && showModal) {
9
+ console.log(id);
9
10
  document.removeEventListener("click", closeModal, false);
10
11
  setShowModal(false);
11
12
  }