EventView: hide extra previews
Getting too busy
This commit is contained in:
@@ -425,13 +425,15 @@ func make_actionbar_model(ev: NostrEvent, damus: DamusState) -> ActionBarModel {
|
|||||||
struct EventView_Previews: PreviewProvider {
|
struct EventView_Previews: PreviewProvider {
|
||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
VStack {
|
VStack {
|
||||||
|
/*
|
||||||
EventView(damus: test_damus_state(), event: NostrEvent(content: "hello there https://jb55.com/s/Oct12-150217.png https://jb55.com/red-me.jb55 cool", pubkey: "pk"), show_friend_icon: true, size: .small)
|
EventView(damus: test_damus_state(), event: NostrEvent(content: "hello there https://jb55.com/s/Oct12-150217.png https://jb55.com/red-me.jb55 cool", pubkey: "pk"), show_friend_icon: true, size: .small)
|
||||||
EventView(damus: test_damus_state(), event: NostrEvent(content: "hello there https://jb55.com/s/Oct12-150217.png https://jb55.com/red-me.jb55 cool", pubkey: "pk"), show_friend_icon: true, size: .normal)
|
EventView(damus: test_damus_state(), event: NostrEvent(content: "hello there https://jb55.com/s/Oct12-150217.png https://jb55.com/red-me.jb55 cool", pubkey: "pk"), show_friend_icon: true, size: .normal)
|
||||||
EventView(damus: test_damus_state(), event: NostrEvent(content: "hello there https://jb55.com/s/Oct12-150217.png https://jb55.com/red-me.jb55 cool", pubkey: "pk"), show_friend_icon: true, size: .big)
|
EventView(damus: test_damus_state(), event: NostrEvent(content: "hello there https://jb55.com/s/Oct12-150217.png https://jb55.com/red-me.jb55 cool", pubkey: "pk"), show_friend_icon: true, size: .big)
|
||||||
|
|
||||||
|
*/
|
||||||
EventView(
|
EventView(
|
||||||
event: NostrEvent(
|
event: NostrEvent(
|
||||||
content: "hello there https://jb55.com/s/Oct12-150217.png https://jb55.com/red-me.jb55 cool",
|
content: "hello there https://jb55.com/s/Oct12-150217.png https://jb55.com/red-me.jpg cool",
|
||||||
pubkey: "pk",
|
pubkey: "pk",
|
||||||
createdAt: Int64(Date().timeIntervalSince1970 - 100)
|
createdAt: Int64(Date().timeIntervalSince1970 - 100)
|
||||||
),
|
),
|
||||||
@@ -441,6 +443,20 @@ struct EventView_Previews: PreviewProvider {
|
|||||||
show_friend_icon: true,
|
show_friend_icon: true,
|
||||||
size: .selected
|
size: .selected
|
||||||
)
|
)
|
||||||
|
|
||||||
|
EventView(
|
||||||
|
event: NostrEvent(
|
||||||
|
content: "hello there https://jb55.com/s/Oct12-150217.png https://jb55.com/red-me.jpg cool",
|
||||||
|
pubkey: "pk",
|
||||||
|
createdAt: Int64(Date().timeIntervalSince1970 - 100)
|
||||||
|
),
|
||||||
|
highlight: .none,
|
||||||
|
has_action_bar: true,
|
||||||
|
damus: test_damus_state(),
|
||||||
|
show_friend_icon: true,
|
||||||
|
size: .normal
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
.padding()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user