Referral: Remove 2000 GB claim limit

This commit is contained in:
Neeraj Gupta 2023-02-16 15:41:12 +05:30
parent 2969705633
commit c9b4933575
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -22,12 +22,9 @@ class StorageDetailsScreen extends StatefulWidget {
class _StorageDetailsScreenState extends State<StorageDetailsScreen> { class _StorageDetailsScreenState extends State<StorageDetailsScreen> {
bool canApplyCode = true; bool canApplyCode = true;
int maxClaimableStorageBonus = 2000;
@override @override
void initState() { void initState() {
maxClaimableStorageBonus =
widget.referralView.planInfo.maxClaimableStorageInGB;
super.initState(); super.initState();
} }
@ -113,8 +110,7 @@ class _StorageDetailsScreenState extends State<StorageDetailsScreen> {
leftValue: convertBytesToAbsoluteGBs( leftValue: convertBytesToAbsoluteGBs(
widget.referralView.claimedStorage), widget.referralView.claimedStorage),
leftUnitName: "GB", leftUnitName: "GB",
rightValue: maxClaimableStorageBonus, rightValue: null,
rightUnitName: "GB",
), ),
BonusInfoSection( BonusInfoSection(
sectionName: "Free storage usable", sectionName: "Free storage usable",
@ -132,8 +128,7 @@ class _StorageDetailsScreenState extends State<StorageDetailsScreen> {
), ),
Text( Text(
"Usable storage is limited by your current" "Usable storage is limited by your current"
" plan, but you can claim upto " " plan. Excess"
"$maxClaimableStorageBonus GB. Excess"
" claimed storage will automatically become" " claimed storage will automatically become"
" usable when you upgrade your plan.", " usable when you upgrade your plan.",
style: textStyle.small style: textStyle.small