mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-02-16 17:55:13 +00:00
Add preview for status row
This commit is contained in:
parent
2986d2b177
commit
c769e80bb6
1 changed files with 28 additions and 0 deletions
|
@ -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 a new issue