@loafmarkets/ui 0.1.149 → 0.1.151
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 +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -8396,7 +8396,7 @@ function PropertyOverview({
|
|
|
8396
8396
|
{ label: "24h Volume", value: isLoading && vol24hDollar == null ? loadingSkeleton : vol24hDollar != null && vol24hDollar > 0 ? `$${vol24hDollar.toLocaleString(void 0, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}` : "\u2014" },
|
|
8397
8397
|
{ label: "Current Dividend Yield", value: isLoading && currentDividendYield == null ? loadingSkeleton : currentDividendYield ? `${currentDividendYield}%` : "\u2014" },
|
|
8398
8398
|
{ label: "Open Orders", value: isLoading && openOrdersValue == null ? loadingSkeleton : openOrdersValue != null && openOrdersValue > 0 ? `$${openOrdersValue.toLocaleString(void 0, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}` : "\u2014" },
|
|
8399
|
-
{ label: "Holders", value: isLoading && holderCount == null ? loadingSkeleton : holderCount != null ? holderCount.toLocaleString() : "\u2014" }
|
|
8399
|
+
{ label: "Token Holders", value: isLoading && holderCount == null ? loadingSkeleton : holderCount != null ? holderCount.toLocaleString() : "\u2014" }
|
|
8400
8400
|
];
|
|
8401
8401
|
const annualDividend = resolvedValuation ? resolvedValuation * 0.02 : null;
|
|
8402
8402
|
const monthlyDivPerShare = annualDividend && resolvedTokensIssued ? annualDividend / 12 / resolvedTokensIssued : null;
|
|
@@ -8405,7 +8405,13 @@ function PropertyOverview({
|
|
|
8405
8405
|
{ label: "Number of Offers", value: "\u2014" },
|
|
8406
8406
|
{ label: "Growth (Past 5 Years)", value: "\u2014" },
|
|
8407
8407
|
{ label: "Security Interest in Asset", value: "Yes, secured to Land Registry" },
|
|
8408
|
-
{ label: "Dividend
|
|
8408
|
+
{ label: "Last Dividend", value: isLoading && monthlyDivPerShare == null ? loadingSkeleton : monthlyDivPerShare != null ? `${(monthlyDivPerShare * 100).toFixed(1)} cents` : "\u2014" },
|
|
8409
|
+
{ label: "Upcoming Dividend", value: (() => {
|
|
8410
|
+
const now = /* @__PURE__ */ new Date();
|
|
8411
|
+
const lastDay = new Date(now.getFullYear(), now.getMonth() + 1, 0);
|
|
8412
|
+
while (lastDay.getDay() === 0 || lastDay.getDay() === 6) lastDay.setDate(lastDay.getDate() - 1);
|
|
8413
|
+
return lastDay.toLocaleDateString("en-AU", { day: "2-digit", month: "short", year: "numeric" });
|
|
8414
|
+
})() }
|
|
8409
8415
|
];
|
|
8410
8416
|
return /* @__PURE__ */ jsxs(Wrapper, { children: [
|
|
8411
8417
|
/* @__PURE__ */ jsxs(Section, { children: [
|