Skip to content

Commit

Permalink
Change design of EVM sync source settings page
Browse files Browse the repository at this point in the history
  • Loading branch information
esen committed Oct 31, 2023
1 parent 38fda3a commit a7ad734
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ extension EvmSyncSourceManager {
} else {
return [
EvmSyncSource(
name: "Infura",
name: "Infura Websocket",
rpcSource: .ethereumInfuraWebsocket(projectId: AppConfig.infuraCredentials.id, projectSecret: AppConfig.infuraCredentials.secret),
transactionSource: defaultTransactionSource(blockchainType: blockchainType)
),
EvmSyncSource(
name: "Infura",
name: "Infura HTTPS",
rpcSource: .ethereumInfuraHttp(projectId: AppConfig.infuraCredentials.id, projectSecret: AppConfig.infuraCredentials.secret),
transactionSource: defaultTransactionSource(blockchainType: blockchainType)
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class EvmNetworkViewController: ThemeViewController {
super.viewDidLoad()

title = viewModel.title
navigationItem.largeTitleDisplayMode = .always

navigationItem.leftBarButtonItem = UIBarButtonItem(customView: iconImageView)
navigationItem.rightBarButtonItem = UIBarButtonItem(title: "button.done".localized, style: .plain, target: self, action: #selector(onTapDone))
Expand Down Expand Up @@ -117,15 +118,17 @@ extension EvmNetworkViewController: SectionsDataSource {

func buildSections() -> [SectionProtocol] {
var sections: [SectionProtocol] = [
Section(
id: "description",
footerState: .margin(height: .margin24),
rows: [
tableView.descriptionRow(id: "description-row", text: "evm_network.description".localized, font: .subhead2, textColor: .themeGray)
]
),
Section(
id: "default",
headerState: .margin(height: .margin12),
footerState: .margin(height: customViewItems.isEmpty ? .margin32 : .margin24),
rows: [
tableView.subtitleWithInfoButtonRow(text: "evm_network.rpc_source".localized) { [weak self] in
self?.openRpcSourceInfo()
}
] + defaultViewItems.enumerated().map { index, viewItem in
rows: defaultViewItems.enumerated().map { index, viewItem in
row(
id: "default-\(index)",
viewItem: viewItem,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1601,6 +1601,7 @@
"evm_network.rpc_source" = "RPC Source";
"evm_network.added" = "Added";
"evm_network.add_new" = "Add New";
"evm_network.description" = "Choose the source Unstoppable app should use for synchronizing wallet(s).";

// Add RPC Source

Expand Down

0 comments on commit a7ad734

Please sign in to comment.