@goodaofi/bonds-sdk 3.0.136 → 3.0.137
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 +10 -7
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -95283,12 +95283,15 @@ const GooPrivatePartners = () => {
|
|
|
95283
95283
|
const depositToken = privatePartnerInfo === null || privatePartnerInfo === void 0 ? void 0 : privatePartnerInfo.contract.principalToken;
|
|
95284
95284
|
const depositContract = privatePartnerInfo === null || privatePartnerInfo === void 0 ? void 0 : privatePartnerInfo.contract.address;
|
|
95285
95285
|
const totalDeposited = (privatePartnerInfo === null || privatePartnerInfo === void 0 ? void 0 : privatePartnerInfo.totalBilledSats) ? privatePartnerInfo.totalBilledSats / 100000000 : 0;
|
|
95286
|
-
let partnerName = privatePartnerInfo
|
|
95287
|
-
if (
|
|
95288
|
-
|
|
95289
|
-
}
|
|
95290
|
-
// Capitalize partner name
|
|
95291
|
-
partnerName = partnerName
|
|
95286
|
+
// let partnerName = privatePartnerInfo?.partnerName
|
|
95287
|
+
// if (privatePartnerInfo?.partnerName === 'enzo') {
|
|
95288
|
+
// partnerName = 'Lorenzo'
|
|
95289
|
+
// }
|
|
95290
|
+
// // Capitalize partner name
|
|
95291
|
+
// partnerName = partnerName
|
|
95292
|
+
// ?.split(' ')
|
|
95293
|
+
// .map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
|
95294
|
+
// .join(' ')
|
|
95292
95295
|
const [inputValue, setInputValue] = useState('0');
|
|
95293
95296
|
const [loadingTx, setLoadingTx] = useState(false);
|
|
95294
95297
|
const [buyTxHash, setBuyTxHash] = useState('');
|
|
@@ -95378,7 +95381,7 @@ const GooPrivatePartners = () => {
|
|
|
95378
95381
|
alignItems: 'center',
|
|
95379
95382
|
borderRadius: '12px',
|
|
95380
95383
|
background: 'white3',
|
|
95381
|
-
}, children: [
|
|
95384
|
+
}, children: [isLoading && (jsxs(Flex, { sx: { flexDirection: 'column', alignItems: 'center', gap: '1rem' }, children: [jsx$2(LoadingSpinner, { isLoading: true, size: 60 }), jsx$2(Text, { sx: { fontSize: '14px', opacity: 0.7 }, children: "Loading partner information..." })] })), error && !isLoading && (jsxs(Flex, { sx: { flexDirection: 'column', alignItems: 'center', gap: '1rem', textAlign: 'center' }, children: [jsx$2(Svg, { icon: "error", width: "48px", color: "error" }), jsx$2(Text, { sx: { fontSize: '16px', fontWeight: 600, color: 'error' }, children: "Failed to load partner data" }), jsx$2(Text, { sx: { fontSize: '14px', opacity: 0.7, maxWidth: '300px' }, children: (error === null || error === void 0 ? void 0 : error.message) || 'An error occurred while fetching partner information' }), jsx$2(Button, { onClick: () => refetch(), variant: "secondary", sx: { mt: '0.5rem' }, children: "Try Again" })] })), !isLoading && !error && account && (jsxs(Flex, { sx: { flexDirection: 'column', width: '100%', gap: '1rem' }, children: [privatePartnerInfo && (jsxs(Flex, { sx: {
|
|
95382
95385
|
flexDirection: 'column',
|
|
95383
95386
|
background: 'white4',
|
|
95384
95387
|
borderRadius: '8px',
|