fix(account-storage): update billingInfo property name for progress percentage
- Changed the property name from `usedPercentage` to `used_percent` in the billing account info interface and updated the corresponding usage in the AccountStorage component to ensure consistency.
This commit is contained in:
@@ -68,7 +68,7 @@ const AccountStorage = ({ themeMode }: IAccountStorageProps) => {
|
||||
<div style={{ display: 'flex', alignItems: 'center' }}>
|
||||
<div style={{ padding: '0 16px' }}>
|
||||
<Progress
|
||||
percent={billingInfo?.usedPercentage ?? 0}
|
||||
percent={billingInfo?.used_percent ?? 0}
|
||||
type="circle"
|
||||
format={percent => <span style={{ fontSize: '13px' }}>{percent}% Used</span>}
|
||||
/>
|
||||
|
||||
@@ -79,6 +79,7 @@ export interface IBillingAccountInfo {
|
||||
unit_price?: number;
|
||||
unit_price_per_month?: number;
|
||||
usedPercentage?: number;
|
||||
used_percent?: number;
|
||||
usedStorage?: number;
|
||||
is_custom?: boolean;
|
||||
is_ltd_user?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user