Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ struct CurrencyInfoContentV2: View {
isReady: !defersHeavyContent
)

MarketCapExplainerRow(action: onShowMarketCapExplainer)
MarketCapExplainerRow(tokenName: metadata.name, action: onShowMarketCapExplainer)
.padding(.horizontal, 20)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import FlipcashUI

/// The entry row under the market cap chart (Figma node 10761:1879).
struct MarketCapExplainerRow: View {
let tokenName: String
let action: () -> Void


var body: some View {
Button(action: action) {
HStack(spacing: 12) {
Expand All @@ -20,7 +20,7 @@ struct MarketCapExplainerRow: View {
.background(Circle().fill(Color.rowSeparator))

VStack(alignment: .leading, spacing: 2) {
Text("How Market Cap Works")
Text("How \(tokenName)'s Price Works")
.font(.appTextMedium)
.foregroundStyle(Color.textMain)
Text("See what moves market cap · 1 min")
Expand Down
Loading