fix many small bugs

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-06-09 11:40:41 -07:00
parent 12785ec4a0
commit e104de6431
11 changed files with 40 additions and 50 deletions

View File

@@ -21,7 +21,7 @@ struct ReplyView: View {
var body: some View {
VStack {
Text("Replying to:")
HStack {
HStack(alignment: .top) {
let names = all_referenced_pubkeys(replying_to)
.map { pubkey in
let pk = pubkey.ref_id
@@ -35,8 +35,6 @@ struct ReplyView: View {
}
EventView(event: replying_to, highlight: .none, has_action_bar: false, damus: damus)
PostView(references: gather_reply_ids(our_pubkey: damus.pubkey, from: replying_to))
Spacer()
}
.padding()
@@ -45,10 +43,8 @@ struct ReplyView: View {
}
/*
struct ReplyView_Previews: PreviewProvider {
static var previews: some View {
ReplyView()
ReplyView(replying_to: NostrEvent(content: "hi", pubkey: "pubkey"), damus: test_damus_state())
}
}
*/