Skip to content

Commit

Permalink
Merge pull request #1616 from p2p-org/bugfix/pwn-665
Browse files Browse the repository at this point in the history
[ETH-665] Redirect to main screen when swap is done
  • Loading branch information
bigearsenal authored Jan 8, 2024
2 parents 0cc08f9 + 3c23f87 commit 8b73444
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 209 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ public enum KeyAppAnalyticsEvent: AnalyticsEvent {
case settingsSupportClick
case settingsRecoveryClick
case settingsPinClick
case settingsNetworkClick
case settingsFaceidClick
case settingsLogOut

Expand Down

This file was deleted.

Binary file not shown.

This file was deleted.

95 changes: 0 additions & 95 deletions p2p_wallet/Scenes/Main/NewSettings/Network/View/NetworkView.swift

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ struct SettingsView: View {
action: { viewModel.showView(.yourPin) },
label: { cellView(image: .pinIcon, title: L10n.yourPIN) }
)
Button(
action: { viewModel.showView(.network) },
label: { cellView(image: .networkIcon, title: L10n.network) }
)
if viewModel.biometryIsAvailable, viewModel.biometryType != .none {
cellView(
image: viewModel.biometryType == .face ? .faceIdIcon : .touchIdIcon,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ final class SettingsViewModel: BaseViewModel, ObservableObject {
switch $0 {
case .yourPin:
return KeyAppAnalyticsEvent.settingsPinClick
case .network:
return KeyAppAnalyticsEvent.settingsNetworkClick
case .recoveryKit:
return KeyAppAnalyticsEvent.settingsRecoveryClick
default:
Expand Down Expand Up @@ -196,6 +194,5 @@ extension SettingsViewModel {
case reserveUsername(userAddress: String)
case recoveryKit
case yourPin
case network
}
}
5 changes: 0 additions & 5 deletions p2p_wallet/Scenes/Main/NewSettings/SettingsCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ final class SettingsCoordinator: Coordinator<Void> {
navigationController.popToRootViewController(animated: true)
})
.store(in: &subscriptions)
case .network:
let coordinator = NetworkCoordinator(navigationController: navigationController)
coordinate(to: coordinator)
.sink(receiveValue: {})
.store(in: &subscriptions)
}
})
.store(in: &subscriptions)
Expand Down
15 changes: 1 addition & 14 deletions p2p_wallet/Scenes/TabBar/TabBarCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -157,20 +157,7 @@ final class TabBarCoordinator: Coordinator<Void> {
/// Set up Swap scene
private func setUpSwap() -> UIViewController {
let nc = UINavigationController()
let swapCoordinator = JupiterSwapCoordinator(
navigationController: nc,
params: JupiterSwapParameters(
dismissAfterCompletion: false,
openKeyboardOnStart: false,
source: .actionPanel,
hideTabBar: false
)
)
jupiterSwapTabCoordinator = swapCoordinator
// coordinate to homeCoordinator
coordinate(to: swapCoordinator)
.sink(receiveValue: {})
.store(in: &subscriptions)
routeToSwap(nc: nc, hidesBottomBarWhenPushed: false, source: .tapMain)
return nc
}

Expand Down

0 comments on commit 8b73444

Please sign in to comment.