Skip to content

Commit

Permalink
[ABW-3793] Update InfoButton titles (#1336)
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasbzurovski committed Sep 12, 2024
1 parent ec1ce73 commit 536137d
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ struct AssetBehaviorsView: View {
}
}

InfoButton(.behaviors, label: L10n.AssetDetails.Behaviors.whatAreBehaviors)
InfoButton(.behaviors, label: L10n.InfoLink.Title.behaviors)
}
.transition(.opacity.combined(with: .scale(scale: 0.8)))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,27 @@ extension EmptyAssetListView.ViewState {
imageAsset: AssetResource.fungibleTokens,
description: L10n.AssetDetails.TokenDetails.noTokens,
glossaryItem: .tokens,
glossaryLabel: L10n.AssetDetails.TokenDetails.whatAreTokens
glossaryLabel: L10n.InfoLink.Title.tokens
)

static let nonFungibleResources = Self(
imageAsset: AssetResource.nft,
description: L10n.AssetDetails.NFTDetails.noNfts,
glossaryItem: .nfts,
glossaryLabel: L10n.AssetDetails.NFTDetails.whatAreNfts
glossaryLabel: L10n.InfoLink.Title.nfts
)

static let stakes = Self(
imageAsset: AssetResource.stakes,
description: L10n.AssetDetails.StakingDetails.noStakes,
glossaryItem: .networkstaking,
glossaryLabel: L10n.AssetDetails.StakingDetails.whatIsStaking
glossaryLabel: L10n.InfoLink.Title.networkstaking
)

static let poolUnits = Self(
imageAsset: AssetResource.poolUnits,
description: L10n.AssetDetails.PoolUnitDetails.noPoolUnits,
glossaryItem: .poolunits,
glossaryLabel: L10n.AssetDetails.PoolUnitDetails.whatArePoolUnits
glossaryLabel: L10n.InfoLink.Title.poolunits
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ extension IntroductionToPersonas {
.foregroundColor(.app.gray1)
.textStyle(.sheetTitle)

InfoButton(.personas, label: L10n.CreatePersona.Introduction.learnAboutPersonas)
InfoButton(.personas, label: L10n.InfoLink.Title.personasLearnAbout)

Text(L10n.CreatePersona.Introduction.subtitle1)
.font(.app.body1Regular)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ extension AuthorizedDappsFeature {
Text(L10n.AuthorizedDapps.subtitle)
.textBlock

InfoButton(.dapps, label: L10n.AuthorizedDapps.whatIsDapp)
InfoButton(.dapps, label: L10n.InfoLink.Title.dapps)

VStack(spacing: .small1) {
ForEach(viewStore.dAppsDetails) { dApp in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ extension PersonaList {
.textStyle(.body1Link)
.foregroundColor(.app.gray2)

InfoButton(.personas, label: L10n.Personas.whatIsPersona)
InfoButton(.personas, label: L10n.InfoLink.Title.personas)

PersonaListCoreView(store: store, tappable: true, showShield: true)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ extension EditPersona {
.foregroundColor(.app.gray1)
.textStyle(.sheetTitle)

InfoButton(.personas, label: L10n.CreatePersona.Introduction.learnAboutPersonas)
InfoButton(.personas, label: L10n.InfoLink.Title.personasLearnAbout)
}

Thumbnail(.persona, url: viewStore.avatarURL, size: .veryLarge)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extension GatewaySettings {
.padding(.horizontal, .medium3)
.padding(.bottom, .large2)

InfoButton(.gateways, label: L10n.Gateways.whatIsAGateway)
InfoButton(.gateways, label: L10n.InfoLink.Title.gateways)
.padding(.horizontal, .medium3)
.padding(.bottom, .large2)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ extension ScanQR.View {
}

if store.kind == .connectorExtension {
InfoButton(.radixconnect, label: L10n.ScanQR.ConnectorExtension.radixConnectLearMore)
InfoButton(.radixconnect, label: L10n.InfoLink.Title.radixconnect)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extension DefaultDepositGuarantees.View {
.foregroundColor(.app.gray2)
.allowsHitTesting(false)

InfoButton(.guarantees, label: L10n.TransactionReview.Guarantees.howDoGuaranteesWork)
InfoButton(.guarantees, label: L10n.InfoLink.Title.guarantees)

Card {
let stepperStore = store.scope(state: \.percentageStepper) { .child(.percentageStepper($0)) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ extension CustomizeFees {
.multilineTextAlignment(.center)
.padding(.bottom, .medium2)

InfoButton(.transactionfee, label: L10n.CustomizeNetworkFees.howDoFeesWork)
InfoButton(.transactionfee, label: L10n.InfoLink.Title.transactionfee)
.padding(.bottom, .medium2)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extension TransactionReviewGuarantees {
.multilineTextAlignment(.center)
.padding(.vertical, .medium3)

InfoButton(.guarantees, label: L10n.TransactionReview.Guarantees.howDoGuaranteesWork)
InfoButton(.guarantees, label: L10n.InfoLink.Title.guarantees)
.padding(.horizontal, .large2)
.padding(.bottom, .medium1)

Expand Down

0 comments on commit 536137d

Please sign in to comment.