Skip to content

Commit

Permalink
ABW-1718 Hide Info Buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
kugel3 committed Jun 7, 2023
1 parent 1ad2cc6 commit 148b8cd
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ extension IntroductionToPersonas {
.foregroundColor(.app.gray1)
.textStyle(.sheetTitle)

Button(L10n.CreatePersona.Introduction.learnAboutPersonas) {
viewStore.send(.showTutorial)
}
.buttonStyle(.info)
// FIXME: Uncomment and implement
// Button(L10n.CreatePersona.Introduction.learnAboutPersonas) {
// viewStore.send(.showTutorial)
// }
// .buttonStyle(.info)

Text(L10n.CreatePersona.Introduction.subtitle1)
.font(.app.body1Regular)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ extension GatewaySettings {
VStack(alignment: .leading, spacing: .small2) {
subtitle

Button(L10n.Gateways.whatIsAGateway) {
viewStore.send(.popoverButtonTapped)
}
.buttonStyle(.info)
.padding(.vertical, .medium2)
// FIXME: Uncomment and implement
// Button(L10n.Gateways.whatIsAGateway) {
// viewStore.send(.popoverButtonTapped)
// }
// .buttonStyle(.info)
// .padding(.vertical, .medium2)

Separator()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,12 @@ extension LedgerHardwareDevices {
.padding(.bottom, .medium1)
}

// Button(L10n.LedgerHardwareDevices.ledgerFactorSourceInfoCaption) {
// viewStore.send(.whatIsALedgerButtonTapped)
// }
// .buttonStyle(.info)
// .flushedLeft
// FIXME: Uncomment and implement
// Button(L10n.LedgerHardwareDevices.ledgerFactorSourceInfoCaption) {
// viewStore.send(.whatIsALedgerButtonTapped)
// }
// .buttonStyle(.info)
// .flushedLeft
}
}
.multilineTextAlignment(.center)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ extension TransactionReviewGuarantees {
.multilineTextAlignment(.center)
.padding(.vertical, .medium3)

Button(L10n.TransactionReview.Guarantees.howDoGuaranteesWork) {
ViewStore(store).send(.view(.infoTapped))
}
.buttonStyle(.info)
.padding(.horizontal, .large2)
.padding(.bottom, .medium1)
// FIXME: Uncomment and implement
// Button(L10n.TransactionReview.Guarantees.howDoGuaranteesWork) {
// ViewStore(store).send(.view(.infoTapped))
// }
// .buttonStyle(.info)
// .padding(.horizontal, .large2)
// .padding(.bottom, .medium1)

Text(L10n.TransactionReview.Guarantees.subtitle)
.textStyle(.body1Regular)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ extension TransactionReviewNetworkFee {
.sectionHeading
.textCase(.uppercase)

// TODO: Enable back
// TransactionReviewInfoButton {
// viewStore.send(.infoTapped)
// }
// FIXME: Uncomment and implement
// TransactionReviewInfoButton {
// viewStore.send(.infoTapped)
// }

Spacer(minLength: 0)

Expand All @@ -37,12 +37,12 @@ extension TransactionReviewNetworkFee {
.foregroundColor(.app.alert)
}

// FIXME: mainnet
// Button(L10n.TransactionReview.NetworkFee.customizeButtonTitle) {
// viewStore.send(.customizeTapped)
// }
// .textStyle(.body1StandaloneLink)
// .foregroundColor(.app.blue2)
// FIXME: Uncomment and implement
// Button(L10n.TransactionReview.NetworkFee.customizeButtonTitle) {
// viewStore.send(.customizeTapped)
// }
// .textStyle(.body1StandaloneLink)
// .foregroundColor(.app.blue2)
}
}
.padding(.horizontal, .medium3)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ extension TransactionReviewProofs {
.sectionHeading
.textCase(.uppercase)

TransactionReviewInfoButton {
viewStore.send(.infoTapped)
}
// FIXME: Uncomment and implement
// TransactionReviewInfoButton {
// viewStore.send(.infoTapped)
// }

Spacer(minLength: 0)
}
Expand Down

0 comments on commit 148b8cd

Please sign in to comment.