Skip to content

Commit

Permalink
[Link] Reimplement 2FA error label to fix flaky test (#1273)
Browse files Browse the repository at this point in the history
* Switch to custom label

* Update snapshot
  • Loading branch information
ramont-stripe authored Jun 29, 2022
1 parent 83f0712 commit 82f01a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Stripe/Link2FAView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ final class Link2FAView: UIView {
}()

private let errorLabel: UILabel = {
let label = ElementsUI.makeErrorLabel()
let label = UILabel()
label.font = LinkUI.font(forTextStyle: .detail)
label.textColor = .systemRed
label.numberOfLines = 0
label.textAlignment = .center
label.isHidden = true
return label
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 82f01a1

Please sign in to comment.