Skip to content

Commit

Permalink
pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
radeknovis committed Jan 29, 2024
1 parent 1ae7197 commit ff313dd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
10 changes: 4 additions & 6 deletions Example/DApp/Modules/Sign/SignPresenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,10 @@ final class SignPresenter: ObservableObject {
}

func connectWalletWithWCM() {
Task {
WalletConnectModal.set(sessionParams: .init(
requiredNamespaces: Proposal.requiredNamespaces,
optionalNamespaces: Proposal.optionalNamespaces
))
}
WalletConnectModal.set(sessionParams: .init(
requiredNamespaces: Proposal.requiredNamespaces,
optionalNamespaces: Proposal.optionalNamespaces
))
WalletConnectModal.present(from: nil)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,8 @@ final class WalletDetailViewModel: ObservableObject {

func handle(_ event: Event) {
switch event {
case .onAppear:
case .onAppear, .didTapUniversalLink, .didTapTryAgain:
deeplinkToWallet()

case .didTapUniversalLink:
deeplinkToWallet()

case .didTapTryAgain:
deeplinkToWallet()

case .didTapAppStore:
deeplinkHandler.openAppstore(wallet: wallet)
}
Expand Down
4 changes: 2 additions & 2 deletions Sources/WalletConnectModal/Modal/Screens/WalletList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ struct WalletList: View {
// iOS 14 doesn't have extra separators below the list by default.
} else {
// To remove only extra separators below the list:
UITableView.appearance().tableFooterView = UIView()
UITableView.appearance(whenContainedInInstancesOf: [WalletConnectModalSheetController.self]).tableFooterView = UIView()
}

// To remove all separators including the actual ones:
UITableView.appearance().separatorStyle = .none
UITableView.appearance(whenContainedInInstancesOf: [WalletConnectModalSheetController.self]).separatorStyle = .none
}

var body: some View {
Expand Down

0 comments on commit ff313dd

Please sign in to comment.