Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 3210c1d

Browse files
committed
Rename addToken to addAsset
Replace the WalletSheetType case `addToken` with `addAsset` and update all usages. Updated enum id string, WalletSceneViewModel (onSelectAddCustomToken) and WalletNavigationStack to use `.addAsset` for consistent, more generic naming across the wallet feature.
1 parent 71f42fa commit 3210c1d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Features/WalletTab/Sources/Types/WalletSheetType.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public enum WalletSheetType: Identifiable, Equatable, Sendable {
1111
case transferData(TransferData)
1212
case perpetualRecipientData(PerpetualRecipientData)
1313
case setPriceAlert(Asset)
14-
case addToken
14+
case addAsset
1515
case portfolio
1616

1717
public var id: String {
@@ -22,7 +22,7 @@ public enum WalletSheetType: Identifiable, Equatable, Sendable {
2222
case .transferData(let data): "transferData-\(data.id)"
2323
case .perpetualRecipientData: "perpetualRecipientData"
2424
case .setPriceAlert(let asset): "setPriceAlert-\(asset.id.identifier)"
25-
case .addToken: "addToken"
25+
case .addAsset: "addAsset"
2626
case .portfolio: "portfolio"
2727
}
2828
}

Features/WalletTab/Sources/ViewModels/WalletSceneViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ extension WalletSceneViewModel {
142142
}
143143

144144
public func onSelectAddCustomToken() {
145-
isPresentingSheet = .addToken
145+
isPresentingSheet = .addAsset
146146
}
147147

148148
func onSelectPortfolio() {

Gem/Navigation/Wallet/WalletNavigationStack.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ struct WalletNavigationStack: View {
208208
priceAlertService: priceAlertService
209209
) { model.onSetPriceAlertComplete(message: $0) }
210210
)
211-
case .addToken:
211+
case .addAsset:
212212
AddAssetNavigationStack(wallet: model.wallet)
213213
case .portfolio:
214214
WalletPortfolioScene(

0 commit comments

Comments
 (0)