Skip to content

Commit

Permalink
gh-2672 PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
elgatovital committed Sep 15, 2022
1 parent 586a705 commit 3575119
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ extension ClaimTokensViewController: UITableViewDelegate, UITableViewDataSource
inputAmount = cell.value
claimButton.isEnabled = (error == nil) && claimButtonEnabled
}
cell.redeemDeadlineWarning = !data.isRedeemed
cell.set(redeemDeadlineLabelVisible: !data.isRedeemed)
return cell

case .selectedDelegate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ class ClaimedAmountInputCell: UITableViewCell {
fieldDelegate.isUsingMaxValue
}

var redeemDeadlineWarning: Bool {
get { !redeemWarningLabel.isHidden }
set { redeemWarningLabel.isHidden = !newValue }
}

override func awakeFromNib() {
super.awakeFromNib()
titleLabel.text = "How much do you want to claim?"
Expand Down Expand Up @@ -70,6 +65,9 @@ class ClaimedAmountInputCell: UITableViewCell {
fieldDelegate.setMaxValue()
}

func set(redeemDeadlineLabelVisible: Bool) {
redeemWarningLabel.isHidden = !redeemDeadlineLabelVisible
}
}

import Solidity
Expand Down

0 comments on commit 3575119

Please sign in to comment.