refactor: merge USDT warning into security warning box

Merged standalone USDT warning into existing security warning section for cleaner UI.
Changes:
- Removed separate red warning box for USDT
- Added USDT warning as first item in security warning box (conditional on Aster exchange)
- Now shows 4 warnings for Aster: USDT requirement + 3 general security warnings
- Cleaner, more organized warning presentation
Co-Authored-By: tinkle-community <tinklefund@gmail.com>
This commit is contained in:
CoderMageFox
2025-11-05 13:19:39 +08:00
parent 9349438e82
commit 6bc9a16f4c

View File

@@ -1899,26 +1899,6 @@ function ExchangeConfigModal({
required
/>
</div>
{/* USDT 警告提示 */}
<div
className="p-4 rounded"
style={{
background: 'rgba(246, 70, 93, 0.1)',
border: '1px solid rgba(246, 70, 93, 0.3)',
}}
>
<div
className="text-sm font-semibold mb-2 flex items-center gap-2"
style={{ color: '#F6465D' }}
>
<AlertTriangle className="w-4 h-4" />
{t('securityWarning', language)}
</div>
<div className="text-xs" style={{ color: '#848E9C' }}>
{t('asterUsdtWarning', language)}
</div>
</div>
</>
)}
@@ -1957,6 +1937,9 @@ function ExchangeConfigModal({
</span>
</div>
<div className="text-xs space-y-1" style={{ color: '#848E9C' }}>
{selectedExchange.id === 'aster' && (
<div>{t('asterUsdtWarning', language)}</div>
)}
<div>{t('exchangeConfigWarning1', language)}</div>
<div>{t('exchangeConfigWarning2', language)}</div>
<div>{t('exchangeConfigWarning3', language)}</div>