Add preview for status row

This commit is contained in:
Thomas Ricouard 2024-02-13 18:50:51 +01:00
parent 2986d2b177
commit c769e80bb6

View file

@ -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)
}