Revert "Remove duplicate share sheet action"

This reverts commit 2b34e88a47.
This commit is contained in:
William Casarin
2023-04-12 11:26:41 -07:00
parent ab853c406c
commit c719058487

View File

@@ -112,6 +112,13 @@ struct EventActionBar: View {
}
}
}
.sheet(isPresented: $show_share_sheet) {
if let note_id = bech32_note_id(event.id) {
if let url = URL(string: "https://damus.io/" + note_id) {
ShareSheet(activityItems: [url])
}
}
}
.onReceive(handle_notify(.update_stats)) { n in
let target = n.object as! String
guard target == self.event.id else { return }