@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.
Files changed (2) hide show
  1. package/dist/main.js +14 -22
  2. 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
- const endTime = useMemo(() => {
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
- const nextStageStartTime = useMemo(() => {
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: [jsxs(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(Text, { sx: {
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)',
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Goo Money Bond SDK",
4
4
  "author": "Goo Money",
5
5
  "license": "MIT",
6
- "version": "3.0.133",
6
+ "version": "3.0.134",
7
7
  "proxy": "https://realtime-api-pr-99.herokuapp.com",
8
8
  "module": "dist/main.js",
9
9
  "type": "module",