mozrest-sdk-react-dev 0.2.32 → 0.2.33

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/mozrest-sdk.es.js CHANGED
@@ -38377,7 +38377,7 @@ const ReplyForm = ({
38377
38377
  const { t: t2 } = useTranslation();
38378
38378
  const { execute, isExecuting } = useService(AddReviewReply);
38379
38379
  useContext(ContextTemplate);
38380
- const [roles] = useContext(ContextUserRole);
38380
+ useContext(ContextUserRole);
38381
38381
  const ref = useRef(null);
38382
38382
  const [showTranslation, setShowTranslation] = useState(false);
38383
38383
  const handleExecute = async (data2) => {
@@ -38422,7 +38422,7 @@ const ReplyForm = ({
38422
38422
  children: t2("REPLYTEMPLATES")
38423
38423
  }), /* @__PURE__ */ React__default.createElement("div", {
38424
38424
  style: { display: "flex", gap: 5 }
38425
- }, !isMobile2 && roles && roles.length > 0 && roles.some((str) => str.includes("BOT")) && /* @__PURE__ */ React__default.createElement(Button$3, {
38425
+ }, !isMobile2 && /* @__PURE__ */ React__default.createElement(Button$3, {
38426
38426
  isLoading: isExecuting || isSuggesting,
38427
38427
  size: "small",
38428
38428
  icon: "robot",
@@ -43892,8 +43892,6 @@ const DetailMobile = ({
43892
43892
  isSuggesting
43893
43893
  }) => {
43894
43894
  const { t: t2 } = useTranslation();
43895
- useContext(ContextTemplate);
43896
- const [roles] = useContext(ContextUserRole);
43897
43895
  const [showTemplates, setShowTemplates] = useState(false);
43898
43896
  const [showTranslation, setShowTranslation] = useState(false);
43899
43897
  const openModal = () => setShowTemplates(true);
@@ -43957,7 +43955,7 @@ const DetailMobile = ({
43957
43955
  open: showTemplates,
43958
43956
  rating,
43959
43957
  onClose: closeModal
43960
- }), !reply2 && platform2 !== "tripadvisor" ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, roles && roles.length > 0 && roles.some((str) => str.includes("BOT")) && /* @__PURE__ */ React__default.createElement(Button$3, {
43958
+ }), !reply2 && platform2 !== "tripadvisor" ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Button$3, {
43961
43959
  isLoading: isSuggesting,
43962
43960
  onClick: () => onSuggestTemplate(),
43963
43961
  style: { marginBottom: 10 },
@@ -102403,7 +102401,6 @@ const ExportDataModal = ({ open, onClose: onClose2, filters: filters2, isExportL
102403
102401
  }));
102404
102402
  };
102405
102403
  const ToolBar = ({ filters: filters2, setFilters, setTotalDays, userEmail, userFullName }) => {
102406
- useTranslation();
102407
102404
  const [openExportDataModal, setOpenExportDataModal] = useState(false);
102408
102405
  const onOpenExportDataModal = () => setOpenExportDataModal(true);
102409
102406
  const onCloseExportDataModal = () => setOpenExportDataModal(false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mozrest-sdk-react-dev",
3
- "version": "0.2.32",
3
+ "version": "0.2.33",
4
4
  "main": "mozrest-sdk.es.js",
5
5
  "keywords": ["mozrest"],
6
6
  "author": {