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:
chamiakJ
2025-06-12 14:28:05 +05:30
parent 58ce8e40c7
commit d0c231ee43
2 changed files with 2 additions and 1 deletions

View File

@@ -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>}
/>

View File

@@ -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;