Skip to content

Commit

Permalink
[#24] Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
blyscuit committed Jan 5, 2023
1 parent fc60eba commit c8ce2ab
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,9 @@ struct AccountView: View {
.loadingDialog(loading: $dataSource.showingLoading)
}

init(account: AccountUiModel, coordinator: AccountCoordinator) {
_dataSource = StateObject(
wrappedValue: DataSource(
coordinator: coordinator,
viewModel: AccountViewModel(accountUiModel: account)
)
)
}
var account: AccountUiModel? { dataSource.viewState.accountUiModel }

var profileSection: some View {
let account = dataSource.viewState.accountUiModel
HStack(alignment: .firstTextBaseline) {
Text((account?.name).string)
.font(.boldLarge)
Expand Down Expand Up @@ -87,11 +79,19 @@ struct AccountView: View {
}

var versionSection: some View {
let account = dataSource.viewState.accountUiModel
Text((account?.appVersion).string)
.font(.regularTiny)
.foregroundColor(.white)
.opacity(0.5)
.accessibility(.account(.versionText))
}

init(account: AccountUiModel, coordinator: AccountCoordinator) {
_dataSource = StateObject(
wrappedValue: DataSource(
coordinator: coordinator,
viewModel: AccountViewModel(accountUiModel: account)
)
)
}
}

0 comments on commit c8ce2ab

Please sign in to comment.