@local-civics/hub-ui 0.1.156 → 0.1.157

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
@@ -3181,7 +3181,7 @@ const BadgeCard = (props) => {
3181
3181
  const buttonTheme = (choice == null ? void 0 : choice.completedAt) ? "light" : "dark";
3182
3182
  const iconName = (choice == null ? void 0 : choice.completedAt) ? "check & circle" : "circle";
3183
3183
  const iconColor = (choice == null ? void 0 : choice.completedAt) ? "text-green-500" : "text-zinc-300";
3184
- return !!choice && /* @__PURE__ */ React__namespace.createElement("div", { key: id, className: "flex gap-x-2 items-center" }, /* @__PURE__ */ React__namespace.createElement("div", { className: `shrink-0 h-4 w-4 ${iconColor}` }, /* @__PURE__ */ React__namespace.createElement(Icon, { name: iconName })), /* @__PURE__ */ React__namespace.createElement("div", { className: "grow" }, /* @__PURE__ */ React__namespace.createElement("div", null, /* @__PURE__ */ React__namespace.createElement("span", { className: "font-semibold" }, choice.activityName)), /* @__PURE__ */ React__namespace.createElement("div", { className: "text-xs" }, /* @__PURE__ */ React__namespace.createElement("span", null, c.displayName), !!choice.xp && /* @__PURE__ */ React__namespace.createElement("span", { className: "ml-1 text-green-500 font-semibold whitespace-nowrap" }, choice.xp, " points"))), (!!(choice == null ? void 0 : choice.completedAt) || !props.preview) && /* @__PURE__ */ React__namespace.createElement("div", { className: "shrink-0 w-full max-w-[7rem]" }, /* @__PURE__ */ React__namespace.createElement(
3184
+ return !!choice && /* @__PURE__ */ React__namespace.createElement("div", { key: id, className: "flex gap-x-2 items-center" }, /* @__PURE__ */ React__namespace.createElement("div", { className: `shrink-0 h-4 w-4 ${iconColor}` }, /* @__PURE__ */ React__namespace.createElement(Icon, { name: iconName })), /* @__PURE__ */ React__namespace.createElement("div", { className: "grow" }, /* @__PURE__ */ React__namespace.createElement("div", null, /* @__PURE__ */ React__namespace.createElement("span", { className: "font-semibold" }, choice.activityName)), /* @__PURE__ */ React__namespace.createElement("div", { className: "text-xs" }, /* @__PURE__ */ React__namespace.createElement("span", null, c.displayName), !!choice.xp && /* @__PURE__ */ React__namespace.createElement("span", { className: "ml-1 text-green-500 font-semibold whitespace-nowrap" }, choice.xp, " points"))), !props.preview && /* @__PURE__ */ React__namespace.createElement("div", { className: "shrink-0 w-full max-w-[7rem]" }, /* @__PURE__ */ React__namespace.createElement(
3185
3185
  Button,
3186
3186
  {
3187
3187
  onClick: choice.onClick,