@local-civics/hub-ui 0.1.158 → 0.1.159
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3161,7 +3161,7 @@ const BadgeCard = (props) => {
|
|
|
3161
3161
|
const buttonTheme = (choice == null ? void 0 : choice.completedAt) ? "light" : "dark";
|
|
3162
3162
|
const iconName = (choice == null ? void 0 : choice.completedAt) ? "check & circle" : "circle";
|
|
3163
3163
|
const iconColor = (choice == null ? void 0 : choice.completedAt) ? "text-green-500" : "text-zinc-300";
|
|
3164
|
-
return /* @__PURE__ */ React.createElement("div", { key: id, className: "flex gap-x-2 items-center" }, /* @__PURE__ */ React.createElement("div", { className: `shrink-0 h-4 w-4 ${iconColor}` }, /* @__PURE__ */ React.createElement(Icon, { name: iconName })), /* @__PURE__ */ React.createElement("div", { className: "grow" }, /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("span", { className: "font-semibold" }, choice.activityName)), /* @__PURE__ */ React.createElement("div", { className: "text-xs" }, /* @__PURE__ */ React.createElement("span", null, c.displayName), !!choice.xp && /* @__PURE__ */ React.createElement("span", { className: "ml-1 text-green-500 font-semibold whitespace-nowrap" }, choice.xp, " points"))), !props.preview && /* @__PURE__ */ React.createElement("div", { className: "shrink-0 w-full max-w-[7rem]" }, /* @__PURE__ */ React.createElement(
|
|
3164
|
+
return !!choice && /* @__PURE__ */ React.createElement("div", { key: id, className: "flex gap-x-2 items-center" }, /* @__PURE__ */ React.createElement("div", { className: `shrink-0 h-4 w-4 ${iconColor}` }, /* @__PURE__ */ React.createElement(Icon, { name: iconName })), /* @__PURE__ */ React.createElement("div", { className: "grow" }, /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("span", { className: "font-semibold" }, choice.activityName)), /* @__PURE__ */ React.createElement("div", { className: "text-xs" }, /* @__PURE__ */ React.createElement("span", null, c.displayName), !!choice.xp && /* @__PURE__ */ React.createElement("span", { className: "ml-1 text-green-500 font-semibold whitespace-nowrap" }, choice.xp, " points"))), !props.preview && /* @__PURE__ */ React.createElement("div", { className: "shrink-0 w-full max-w-[7rem]" }, /* @__PURE__ */ React.createElement(
|
|
3165
3165
|
Button,
|
|
3166
3166
|
{
|
|
3167
3167
|
onClick: choice.onClick,
|