@goodaofi/bonds-sdk 3.0.133 → 3.0.134
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/main.js +14 -22
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -94582,7 +94582,7 @@ const ProgressBar = ({ saleInfo }) => {
|
|
|
94582
94582
|
currency: 'USD',
|
|
94583
94583
|
maximumFractionDigits: 0,
|
|
94584
94584
|
});
|
|
94585
|
-
|
|
94585
|
+
useMemo(() => {
|
|
94586
94586
|
const timestamp = stage === null || stage === void 0 ? void 0 : stage.endTime;
|
|
94587
94587
|
if (!timestamp)
|
|
94588
94588
|
return 'N/A';
|
|
@@ -94596,7 +94596,7 @@ const ProgressBar = ({ saleInfo }) => {
|
|
|
94596
94596
|
minute: '2-digit',
|
|
94597
94597
|
});
|
|
94598
94598
|
}, [stage]);
|
|
94599
|
-
|
|
94599
|
+
useMemo(() => {
|
|
94600
94600
|
var _a, _b;
|
|
94601
94601
|
return ((_a = saleInfo === null || saleInfo === void 0 ? void 0 : saleInfo.nextStage) === null || _a === void 0 ? void 0 : _a.startTime)
|
|
94602
94602
|
? new Date(((_b = saleInfo === null || saleInfo === void 0 ? void 0 : saleInfo.nextStage) === null || _b === void 0 ? void 0 : _b.startTime) * 1000).toLocaleString('en-US', {
|
|
@@ -94609,26 +94609,18 @@ const ProgressBar = ({ saleInfo }) => {
|
|
|
94609
94609
|
})
|
|
94610
94610
|
: 'N/A';
|
|
94611
94611
|
}, [saleInfo]);
|
|
94612
|
-
return (jsxs(Fragment$1, { children: [
|
|
94613
|
-
|
|
94614
|
-
|
|
94615
|
-
|
|
94616
|
-
|
|
94617
|
-
|
|
94618
|
-
|
|
94619
|
-
|
|
94620
|
-
|
|
94621
|
-
|
|
94622
|
-
|
|
94623
|
-
|
|
94624
|
-
fontSize: '12px',
|
|
94625
|
-
fontWeight: '400',
|
|
94626
|
-
textAlign: 'right',
|
|
94627
|
-
ml: '10px',
|
|
94628
|
-
color: 'var(--theme-ui-colors-textDisabledButton)',
|
|
94629
|
-
}, children: (stage === null || stage === void 0 ? void 0 : stage.hasEnded)
|
|
94630
|
-
? 'Stage ' + nextStageNumber + ' starts: ' + nextStageStartTime + ' UTC'
|
|
94631
|
-
: 'Stage ' + stageNumber + ' Ends: ' + endTime + ' UTC' })] }), jsx$2(Flex$1, { sx: { width: ['100%'], alignItems: 'center', flexDirection: 'row', my: '1rem' }, children: jsx$2(Box$1, { style: {
|
|
94612
|
+
return (jsxs(Fragment$1, { children: [jsx$2(Flex$1, { sx: { alignItems: 'end', justifyContent: 'space-between', flexDirection: 'row', mt: '1rem' }, children: jsxs(Flex$1, { sx: { flexDirection: 'column', width: '200px', alignItems: 'start' }, children: [jsx$2(Text, { sx: {
|
|
94613
|
+
fontSize: '14px',
|
|
94614
|
+
fontWeight: '700',
|
|
94615
|
+
color: 'var(--theme-ui-colors-textDisabledButton)',
|
|
94616
|
+
mb: '0.2rem',
|
|
94617
|
+
}, children: "Total Raised" }), jsxs(Flex$1, { sx: { flexDirection: 'row', alignItems: 'center' }, children: [jsx$2(Text, { sx: { fontSize: '22px', fontWeight: '700' }, children: `${totalBilledBTC.toFixed(0)} BTC` }), jsx$2(Text, { sx: { fontSize: '14px', fontWeight: '400', ml: '10px' }, children: `(${totalBilledUSD})` })] }), jsx$2(Text, { sx: {
|
|
94618
|
+
fontSize: '14px',
|
|
94619
|
+
fontWeight: '700',
|
|
94620
|
+
color: 'var(--theme-ui-colors-textDisabledButton)',
|
|
94621
|
+
mb: '0.2rem',
|
|
94622
|
+
mt: '1rem',
|
|
94623
|
+
}, children: stageSoldOut ? 'Stage ' + stageNumber + ' Completed!' : 'Stage ' + stageNumber + ' Progress' }), jsx$2(Text, { sx: { fontSize: '22px', fontWeight: '700' }, children: `${billed.toFixed(2)} BTC/ ${hardCap} BTC` })] }) }), jsx$2(Flex$1, { sx: { width: ['100%'], alignItems: 'center', flexDirection: 'row', my: '1rem' }, children: jsx$2(Box$1, { style: {
|
|
94632
94624
|
width: '100%',
|
|
94633
94625
|
height: '11px',
|
|
94634
94626
|
backgroundColor: 'var(--theme-ui-colors-white4)',
|