mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-23 13:28:50 +01:00
Add preview for status row
This commit is contained in:
parent
2986d2b177
commit
c769e80bb6
@ -329,3 +329,31 @@ public struct StatusRowView: View {
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
List {
|
||||
StatusRowView(viewModel:
|
||||
.init(status: .placeholder(),
|
||||
client: .init(server: ""),
|
||||
routerPath: RouterPath()),
|
||||
context: .timeline)
|
||||
StatusRowView(viewModel:
|
||||
.init(status: .placeholder(),
|
||||
client: .init(server: ""),
|
||||
routerPath: RouterPath()),
|
||||
context: .timeline)
|
||||
StatusRowView(viewModel:
|
||||
.init(status: .placeholder(),
|
||||
client: .init(server: ""),
|
||||
routerPath: RouterPath()),
|
||||
context: .timeline)
|
||||
}.listStyle(.plain)
|
||||
.environment(RouterPath())
|
||||
.environment(Client(server: ""))
|
||||
.environment(CurrentAccount.shared)
|
||||
.environment(UserPreferences.shared)
|
||||
.environment(CurrentInstance.shared)
|
||||
.environment(Theme.shared)
|
||||
.environment(PushNotificationsService.shared)
|
||||
.environment(QuickLook.shared)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user