@hybr1d-tech/charizard 0.7.20 → 0.7.22

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/hybr1d-ui.js CHANGED
@@ -7414,8 +7414,8 @@ function H4({
7414
7414
  {
7415
7415
  label: "Cancel request",
7416
7416
  onClick: (i) => {
7417
- if (typeof t[o] < "u") {
7418
- t[o](i);
7417
+ if (typeof t[o + 1] < "u") {
7418
+ t[o + 1](i);
7419
7419
  return;
7420
7420
  }
7421
7421
  a(`/${i.module_reference}/${i.task_details_id}?cancel=true`, {
@@ -7425,7 +7425,7 @@ function H4({
7425
7425
  iconSrc: ho,
7426
7426
  customStyles: { color: "var(--status-error-e50)" },
7427
7427
  customSvgClassName: V0.logoutIcon,
7428
- filterFn: (i) => i.module_reference !== "profile"
7428
+ filterFn: (i) => !(i.module_reference === "profile" || i.module_reference === "attendance")
7429
7429
  }
7430
7430
  ];
7431
7431
  return /* @__PURE__ */ n.jsxs("div", { className: V0.card, children: [
@@ -9705,7 +9705,12 @@ function z9({
9705
9705
  month: new Date(e).getMonth(),
9706
9706
  year: new Date(e).getFullYear()
9707
9707
  });
9708
- }, [e]);
9708
+ }, [e]), f.useEffect(() => {
9709
+ x({
9710
+ month: (/* @__PURE__ */ new Date()).getMonth(),
9711
+ year: (/* @__PURE__ */ new Date()).getFullYear()
9712
+ });
9713
+ }, []);
9709
9714
  const b = f.useMemo(() => {
9710
9715
  if (e) {
9711
9716
  const A = wa(e) ? e : Na(e);