mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-08-10 13:21:00 +00:00
refactor(frontend): migrate off deprecated Ant Design 6 props
The repo's type-aware deprecation sweep (eslint.deprecated.config.js) reported fourteen findings; it now reports zero. Alert message becomes title and closable+onClose becomes closable.onClose; Select optionFilterProp moves into showSearch.optionFilterProp and suffixIcon becomes suffix; Drawer width becomes size; Progress trailColor becomes railColor. Behavior is unchanged apart from a few single-mode selects gaining type-to-filter, which the old prop already implied.
This commit is contained in:
@@ -286,7 +286,7 @@ export default function SubPage() {
|
||||
<Col xs={24} sm={22} md={18} lg={14} xl={12}>
|
||||
<Card hoverable className="subscription-card" title={cardTitle} extra={cardExtra}>
|
||||
{announce && (
|
||||
<Alert type="info" showIcon message={announce} style={{ marginBottom: 16 }} />
|
||||
<Alert type="info" showIcon title={announce} style={{ marginBottom: 16 }} />
|
||||
)}
|
||||
<Descriptions
|
||||
bordered
|
||||
|
||||
@@ -78,7 +78,7 @@ export default function SubUsageSummary({
|
||||
percent={pct}
|
||||
showInfo={false}
|
||||
strokeColor={{ '0%': stroke.from, '100%': stroke.to }}
|
||||
trailColor="var(--ant-color-fill-secondary)"
|
||||
railColor="var(--ant-color-fill-secondary)"
|
||||
strokeWidth={10}
|
||||
className="usage-summary-bar"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user