mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-22 16:31:00 +00:00
Fix add account instance info view
This commit is contained in:
parent
039f786c16
commit
a1a6c3091e
2 changed files with 28 additions and 18 deletions
|
@ -51,7 +51,7 @@ struct AddAccountView: View {
|
|||
}
|
||||
}
|
||||
.listRowBackground(theme.primaryBackgroundColor)
|
||||
InstanceInfoView(instance: instance)
|
||||
InstanceInfoSection(instance: instance)
|
||||
} else {
|
||||
instancesListView
|
||||
}
|
||||
|
|
|
@ -10,6 +10,20 @@ struct InstanceInfoView: View {
|
|||
|
||||
var body: some View {
|
||||
Form {
|
||||
InstanceInfoSection(instance: instance)
|
||||
}
|
||||
.navigationTitle("Instance Info")
|
||||
.scrollContentBackground(.hidden)
|
||||
.background(theme.secondaryBackgroundColor)
|
||||
}
|
||||
}
|
||||
|
||||
public struct InstanceInfoSection: View {
|
||||
@EnvironmentObject private var theme: Theme
|
||||
|
||||
let instance: Instance
|
||||
|
||||
public var body: some View {
|
||||
Section("Instance info") {
|
||||
LabeledContent("Name", value: instance.title)
|
||||
Text(instance.shortDescription)
|
||||
|
@ -28,8 +42,4 @@ struct InstanceInfoView: View {
|
|||
}
|
||||
.listRowBackground(theme.primaryBackgroundColor)
|
||||
}
|
||||
.navigationTitle("Instance Info")
|
||||
.scrollContentBackground(.hidden)
|
||||
.background(theme.secondaryBackgroundColor)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue