From 4de1fa8188c998535aa22fac03312a312caaa1ca Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 26 Aug 2026 18:48:27 +0200 Subject: [PATCH] After starting the cold wallet to hot wallet2 --- .../features/treasury/TreasuryAdminPage.tsx | 118 ++++++++++-------- prediqo_web/src/shared/i18n/locales/en.ts | 1 + prediqo_web/src/shared/i18n/locales/fr.ts | 1 + 3 files changed, 66 insertions(+), 54 deletions(-) diff --git a/prediqo_web/src/features/treasury/TreasuryAdminPage.tsx b/prediqo_web/src/features/treasury/TreasuryAdminPage.tsx index 5cffc18f..3afe0ad6 100644 --- a/prediqo_web/src/features/treasury/TreasuryAdminPage.tsx +++ b/prediqo_web/src/features/treasury/TreasuryAdminPage.tsx @@ -614,67 +614,77 @@ export function TreasuryAdminPage() { {t('admin.treasury.fundingSteps')} - - - {t('admin.treasury.network')} - + setFundingForm((f) => ({ + ...f, + walletTypeId: Number(e.target.value), + })) + } + > + {assets.map((a) => ( + + {a.walletType.name} ({networkLabel(a.walletType.network)}) + + ))} + + + setFundingForm((f) => ({ ...f, amountUsdt: e.target.value }))} + placeholder="0.50" + InputProps={{ + endAdornment: USDT, + }} + helperText={ + fundingRawPreview !== '0' + ? t('admin.treasury.amountRawPreview', { + raw: fundingRawPreview, + decimals: fundingDecimals, + }) + : t('admin.treasury.amountUsdtHint') } - > - {assets.map((a) => ( - - {a.walletType.name} ({networkLabel(a.walletType.network)}) - - ))} - - - setFundingForm((f) => ({ ...f, amountUsdt: e.target.value }))} - placeholder="0.50" - InputProps={{ - endAdornment: USDT, - }} - helperText={ - fundingRawPreview !== '0' - ? t('admin.treasury.amountRawPreview', { - raw: fundingRawPreview, - decimals: fundingDecimals, - }) - : t('admin.treasury.amountUsdtHint') - } - sx={{ minWidth: { xs: '100%', md: 180 } }} - /> + sx={{ width: { xs: '100%', sm: 160 }, flex: '0 0 auto' }} + /> + + + + setFundingForm((f) => ({ ...f, notes: e.target.value }))} + placeholder={t('admin.treasury.notesOptional')} + sx={{ maxWidth: 360, width: '100%' }} /> - - - {fundingError && ( setFundingError(null)}> diff --git a/prediqo_web/src/shared/i18n/locales/en.ts b/prediqo_web/src/shared/i18n/locales/en.ts index acc19779..0f850765 100644 --- a/prediqo_web/src/shared/i18n/locales/en.ts +++ b/prediqo_web/src/shared/i18n/locales/en.ts @@ -1568,6 +1568,7 @@ export const en = { copyColdForTransfer: 'From (cold) — source of funds', copyHotDestination: 'To (hot) — paste this on your exchange / wallet', notes: 'Notes', + notesOptional: 'Optional', requestFunding: 'Request funding', amount: 'Amount', fromTo: 'From → To', diff --git a/prediqo_web/src/shared/i18n/locales/fr.ts b/prediqo_web/src/shared/i18n/locales/fr.ts index a3cbfd95..f7bcb99f 100644 --- a/prediqo_web/src/shared/i18n/locales/fr.ts +++ b/prediqo_web/src/shared/i18n/locales/fr.ts @@ -1584,6 +1584,7 @@ export const fr = { copyColdForTransfer: 'De (cold) — source des fonds', copyHotDestination: 'Vers (hot) — à coller dans l’échangeur / wallet', notes: 'Notes', + notesOptional: 'Facultatif', requestFunding: 'Demander le financement', amount: 'Montant', fromTo: 'De → Vers',