mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Remove unnecessary EnvironmentObject
This commit is contained in:
parent
51275bc747
commit
78df0628f1
@ -1,7 +1,6 @@
|
||||
import SwiftUI
|
||||
|
||||
struct CollectionSidebar: View {
|
||||
@EnvironmentObject var postStore: PostStore
|
||||
@Binding var selectedCollection: PostCollection?
|
||||
|
||||
private let collections = postCollections
|
||||
@ -15,12 +14,11 @@ struct CollectionSidebar: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.listStyle(SidebarListStyle())
|
||||
.listStyle(SidebarListStyle())
|
||||
}
|
||||
|
||||
struct CollectionSidebar_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
CollectionSidebar()
|
||||
.environmentObject(testPostStore)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user