@orangecheck/app-design 0.5.6 → 0.5.7
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/components.js +3 -2
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +3 -2
- package/dist/components.mjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2176,10 +2176,11 @@ function UsdApprox({
|
|
|
2176
2176
|
}) {
|
|
2177
2177
|
if (sats == null || usdPerBtc == null || !Number.isFinite(sats) || !Number.isFinite(usdPerBtc)) return null;
|
|
2178
2178
|
const usd = sats / 1e8 * usdPerBtc;
|
|
2179
|
-
const text = new Intl.NumberFormat("en-US", {
|
|
2179
|
+
const text = usd > 0 && usd < 5e-3 ? "< $0.01" : new Intl.NumberFormat("en-US", {
|
|
2180
2180
|
style: "currency",
|
|
2181
2181
|
currency: "USD",
|
|
2182
|
-
|
|
2182
|
+
minimumFractionDigits: 2,
|
|
2183
|
+
maximumFractionDigits: 2
|
|
2183
2184
|
}).format(usd);
|
|
2184
2185
|
return /* @__PURE__ */ jsxs("span", { className: cn("oca-tabular text-muted-foreground", className), children: [
|
|
2185
2186
|
"\u2248 ",
|