@local-civics/hub-ui 0.1.224 → 0.1.225

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.d.ts CHANGED
@@ -329,7 +329,7 @@ type BadgeDetailProps = {
329
329
  choices?: BadgeActivityProps[];
330
330
  canSubmit?: boolean;
331
331
  finishedAt?: string;
332
- onBack?: () => void;
332
+ onPathwayClick?: () => void;
333
333
  onSubmit?: () => void;
334
334
  };
335
335
  /**
package/dist/index.js CHANGED
@@ -3927,7 +3927,7 @@ const BadgeDetail = (props) => {
3927
3927
  const status = props.finishedAt ? "Completed" : anyStarted || xp > 0 ? "In Progress" : "Available";
3928
3928
  const { border, shadow, pillAccent } = STATUS_CLASSNAMES$1[status];
3929
3929
  const showSubmit = !props.finishedAt && criteria.length > 0;
3930
- return /* @__PURE__ */ React__namespace.createElement("div", { className: "flex max-w-2xl flex-col gap-3.5" }, props.onBack && /* @__PURE__ */ React__namespace.createElement("div", { onClick: props.onBack, className: "w-max cursor-pointer text-xs font-bold text-sky-blue-400" }, "\u2190 Back to My Badges"), /* @__PURE__ */ React__namespace.createElement("div", { className: `overflow-hidden rounded-2xl border bg-white ${border} ${shadow}` }, /* @__PURE__ */ React__namespace.createElement("div", { className: "flex gap-4 p-5" }, /* @__PURE__ */ React__namespace.createElement("div", { className: "shrink-0" }, /* @__PURE__ */ React__namespace.createElement(
3930
+ return /* @__PURE__ */ React__namespace.createElement("div", { className: "flex max-w-2xl flex-col gap-3.5" }, props.onPathwayClick && /* @__PURE__ */ React__namespace.createElement("div", { onClick: props.onPathwayClick, className: "w-max cursor-pointer text-xs font-bold text-sky-blue-400" }, "\u2190 Go to Pathway"), /* @__PURE__ */ React__namespace.createElement("div", { className: `overflow-hidden rounded-2xl border bg-white ${border} ${shadow}` }, /* @__PURE__ */ React__namespace.createElement("div", { className: "flex gap-4 p-5" }, /* @__PURE__ */ React__namespace.createElement("div", { className: "shrink-0" }, /* @__PURE__ */ React__namespace.createElement(
3931
3931
  BadgeEmblem,
3932
3932
  {
3933
3933
  icon: props.icon,