Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-dydx committed Dec 4, 2023
1 parent e3b5825 commit d8fad93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions PlatformUI/PlatformUI/Components/Input/PlatformInput.swift
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ open class PlatformBooleanInputViewModel: PlatformValueInputViewModel {
Spacer()
Toggle("", isOn: self.inputBinding)
.toggleStyle(SwitchToggleStyle(tint: ThemeColor.SemanticColor.colorPurple.color))
.disabled(!self.isEnabled)
}
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ private class dydxProfileViewPresenter: HostedViewPresenter<dydxProfileViewModel
private let headerPresenter: dydxProfileHeaderViewPresenter
private let historyPresenter: dydxProfileHistoryViewPresenter
private let feesPresenter: dydxProfileFeesViewPresenter
private let balancessPresenter: dydxProfileBalancesViewPresenter
private let balancesPresenter: dydxProfileBalancesViewPresenter

private lazy var childPresenters: [HostedViewPresenterProtocol] = [
buttonsPresenter,
settingsHelpRowPresenter,
headerPresenter,
historyPresenter,
feesPresenter,
balancessPresenter
balancesPresenter
]

override init() {
Expand All @@ -57,15 +57,15 @@ private class dydxProfileViewPresenter: HostedViewPresenter<dydxProfileViewModel
buttonsPresenter = .init(viewModel: viewModel.buttons)
historyPresenter = .init()
feesPresenter = .init()
balancessPresenter = .init()
balancesPresenter = .init()

super.init()

self.viewModel = viewModel

historyPresenter.$viewModel.assign(to: &viewModel.$history)
feesPresenter.$viewModel.assign(to: &viewModel.$fees)
balancessPresenter.$viewModel.assign(to: &viewModel.$balances)
balancesPresenter.$viewModel.assign(to: &viewModel.$balances)

attachChildren(workers: childPresenters)
}
Expand Down

0 comments on commit d8fad93

Please sign in to comment.