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={{ display: 'flex', alignItems: 'center' }}>
|
||||||
<div style={{ padding: '0 16px' }}>
|
<div style={{ padding: '0 16px' }}>
|
||||||
<Progress
|
<Progress
|
||||||
percent={billingInfo?.usedPercentage ?? 0}
|
percent={billingInfo?.used_percent ?? 0}
|
||||||
type="circle"
|
type="circle"
|
||||||
format={percent => <span style={{ fontSize: '13px' }}>{percent}% Used</span>}
|
format={percent => <span style={{ fontSize: '13px' }}>{percent}% Used</span>}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ export interface IBillingAccountInfo {
|
|||||||
unit_price?: number;
|
unit_price?: number;
|
||||||
unit_price_per_month?: number;
|
unit_price_per_month?: number;
|
||||||
usedPercentage?: number;
|
usedPercentage?: number;
|
||||||
|
used_percent?: number;
|
||||||
usedStorage?: number;
|
usedStorage?: number;
|
||||||
is_custom?: boolean;
|
is_custom?: boolean;
|
||||||
is_ltd_user?: boolean;
|
is_ltd_user?: boolean;
|
||||||
|
|||||||
Reference in New Issue
Block a user