analytica-frontend-lib 1.2.59 → 1.2.60

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/index.js CHANGED
@@ -20928,7 +20928,7 @@ var ActivityDetails = ({
20928
20928
  onBack();
20929
20929
  }
20930
20930
  };
20931
- const subjectEnum = data?.activity.subjectName && mapSubjectNameToEnum ? mapSubjectNameToEnum(data.activity.subjectName) : null;
20931
+ const subjectEnum = data?.activity?.subjectName && mapSubjectNameToEnum ? mapSubjectNameToEnum(data.activity.subjectName) : null;
20932
20932
  const subjectInfo = subjectEnum ? getSubjectInfo(subjectEnum) : null;
20933
20933
  if (loading && !data) {
20934
20934
  return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "flex flex-col w-full h-auto relative justify-center items-center mb-5 overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex flex-col w-full h-full max-w-[1150px] mx-auto z-10 lg:px-0 px-4 pt-4 gap-4", children: [
@@ -20975,9 +20975,9 @@ var ActivityDetails = ({
20975
20975
  }
20976
20976
  ),
20977
20977
  /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_phosphor_react43.CaretRight, { size: 16, className: "text-text-500" }),
20978
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Text_default, { className: "text-text-950 text-sm font-bold", children: data.activity.title })
20978
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Text_default, { className: "text-text-950 text-sm font-bold", children: data.activity?.title || "Atividade" })
20979
20979
  ] }),
20980
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "bg-background rounded-xl p-4 flex flex-col gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex justify-between items-start", children: [
20980
+ data.activity && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "bg-background rounded-xl p-4 flex flex-col gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex justify-between items-start", children: [
20981
20981
  /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex flex-col gap-2", children: [
20982
20982
  /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Text_default, { className: "text-2xl font-bold text-text-950", children: data.activity.title }),
20983
20983
  /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex items-center gap-2 flex-wrap", children: [