mirror of https://github.com/lukechilds/damus.git
Browse Source
Changelog-Changed: Renamed boost to repost Changelog-Changed: Removed nip05 domain from boosts/repoststranslations_damus-localizations-en-us-xcloc-localized-contents-en-us-xliff--master_es_419
William Casarin
2 years ago
5 changed files with 41 additions and 32 deletions
@ -0,0 +1,34 @@ |
|||
// |
|||
// Reposted.swift |
|||
// damus |
|||
// |
|||
// Created by William Casarin on 2023-01-11. |
|||
// |
|||
|
|||
import SwiftUI |
|||
|
|||
struct Reposted: View { |
|||
let damus: DamusState |
|||
let pubkey: String |
|||
let profile: Profile? |
|||
|
|||
var body: some View { |
|||
HStack(alignment: .center) { |
|||
Image(systemName: "arrow.2.squarepath") |
|||
.font(.footnote) |
|||
.foregroundColor(Color.gray) |
|||
ProfileName(pubkey: pubkey, profile: profile, damus: damus, show_friend_confirmed: true, show_nip5_domain: false) |
|||
.foregroundColor(Color.gray) |
|||
Text("Reposted", comment: "Text indicating that the post was reposted (i.e. re-shared).") |
|||
.font(.footnote) |
|||
.foregroundColor(Color.gray) |
|||
} |
|||
} |
|||
} |
|||
|
|||
struct Reposted_Previews: PreviewProvider { |
|||
static var previews: some View { |
|||
let test_state = test_damus_state() |
|||
Reposted(damus: test_state, pubkey: test_state.pubkey, profile: make_test_profile()) |
|||
} |
|||
} |
Loading…
Reference in new issue