Skip to content

Commit

Permalink
Merge pull request #2535 from stripe/kg-netdisconnect
Browse files Browse the repository at this point in the history
FC Networking: changed Link Account Picker account row to have a Disconnected label
  • Loading branch information
kgaidis-stripe authored May 3, 2023
2 parents 0d58be5 + e0098a3 commit 8d31bfd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ final class LinkAccountPickerBodyView: UIView {

// list all accounts
accounts.forEach { account in
let isDisabled = (account.status != "active")
let accountRowView = LinkAccountPickerRowView(
isDisabled: account.status != "active",
isDisabled: isDisabled,
didSelect: { [weak self] in
guard let self = self else { return }
self.delegate?.linkAccountPickerBodyView(
Expand All @@ -66,7 +67,7 @@ final class LinkAccountPickerBodyView: UIView {
institutionImageUrl: account.institution?.icon?.default,
leadingTitle: rowTitles.leadingTitle,
trailingTitle: rowTitles.trailingTitle,
subtitle: AccountPickerHelpers.rowSubtitle(forAccount: account),
subtitle: isDisabled ? STPLocalizedString("Disconnected", "A subtitle on a button that represents a bank account. It explains to the user that this bank account is disconnected and needs to be re-added.") : AccountPickerHelpers.rowSubtitle(forAccount: account),
isSelected: selectedAccount?.id == account.id
)
verticalStackView.addArrangedSubview(accountRowView)
Expand Down

0 comments on commit 8d31bfd

Please sign in to comment.