@sensiblestats/widget-react 0.48.7 → 0.48.8
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/CHANGELOG.md +8 -0
- package/dist/index.cjs +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2650,17 +2650,19 @@ function InjuriesCard({ card, ui }) {
|
|
|
2650
2650
|
const limit = expanded ? void 0 : SHOWN;
|
|
2651
2651
|
const showMore = ui?.showMore ?? ((n) => `Show ${n} more`);
|
|
2652
2652
|
const showLess = ui?.showLess ?? "Show less";
|
|
2653
|
+
const homeCol = data.oursIsHome ? { name: data.oursName, crest: data.oursCrestUrl, rows: data.ours } : { name: data.theirsName, crest: data.theirsCrestUrl, rows: data.theirs };
|
|
2654
|
+
const awayCol = data.oursIsHome ? { name: data.theirsName, crest: data.theirsCrestUrl, rows: data.theirs } : { name: data.oursName, crest: data.oursCrestUrl, rows: data.ours };
|
|
2653
2655
|
return /* @__PURE__ */ jsxs17("div", { className: "ss-w-fandash-card ss-w-fandash-injuries", children: [
|
|
2654
2656
|
card.title ? /* @__PURE__ */ jsx21("span", { className: "ss-w-fandash-eyebrow", children: card.title }) : null,
|
|
2655
2657
|
/* @__PURE__ */ jsxs17("div", { className: "ss-w-fandash-injuries-cols", children: [
|
|
2656
2658
|
/* @__PURE__ */ jsxs17("div", { className: "ss-w-fandash-injuries-col", children: [
|
|
2657
|
-
/* @__PURE__ */ jsx21(ColHead, { name:
|
|
2658
|
-
/* @__PURE__ */ jsx21(InjuryList, { rows:
|
|
2659
|
+
/* @__PURE__ */ jsx21(ColHead, { name: homeCol.name, crestUrl: homeCol.crest }),
|
|
2660
|
+
/* @__PURE__ */ jsx21(InjuryList, { rows: homeCol.rows, emptyLabel: data.emptyLabel, limit })
|
|
2659
2661
|
] }),
|
|
2660
2662
|
/* @__PURE__ */ jsx21("div", { className: "ss-w-fandash-injuries-divider" }),
|
|
2661
2663
|
/* @__PURE__ */ jsxs17("div", { className: "ss-w-fandash-injuries-col", children: [
|
|
2662
|
-
/* @__PURE__ */ jsx21(ColHead, { name:
|
|
2663
|
-
/* @__PURE__ */ jsx21(InjuryList, { rows:
|
|
2664
|
+
/* @__PURE__ */ jsx21(ColHead, { name: awayCol.name, crestUrl: awayCol.crest }),
|
|
2665
|
+
/* @__PURE__ */ jsx21(InjuryList, { rows: awayCol.rows, emptyLabel: data.emptyLabel, limit })
|
|
2664
2666
|
] })
|
|
2665
2667
|
] }),
|
|
2666
2668
|
hidden > 0 ? /* @__PURE__ */ jsx21(
|