Use "Follow me on nostr" text when looking at someone else's QR code
Fixes: #1069 Closes: #1199 Changelog-Fixed: Use "Follow me on nostr" text when looking at someone else's QR code
This commit is contained in:
committed by
William Casarin
parent
f7a0370824
commit
c22199165a
@@ -80,10 +80,17 @@ struct QRCodeView: View {
|
|||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
Text("Follow me on nostr", comment: "Text on QR code view to prompt viewer looking at screen to follow the user.")
|
if (pubkey == damus_state.pubkey) {
|
||||||
.foregroundColor(DamusColors.white)
|
Text("Follow me on nostr", comment: "Text on QR code view to prompt viewer looking at screen to follow the user.")
|
||||||
.font(.system(size: 24, weight: .heavy))
|
.foregroundColor(DamusColors.white)
|
||||||
.padding(.top)
|
.font(.system(size: 24, weight: .heavy))
|
||||||
|
.padding(.top)
|
||||||
|
} else {
|
||||||
|
Text("Follow them on nostr", comment: "Text on QR code view to prompt viewer looking at screen to follow the user (someone else).")
|
||||||
|
.foregroundColor(DamusColors.white)
|
||||||
|
.font(.system(size: 24, weight: .heavy))
|
||||||
|
.padding(.top)
|
||||||
|
}
|
||||||
|
|
||||||
Text("Scan the code", comment: "Text on QR code view to prompt viewer to scan the QR code on screen with their device camera.")
|
Text("Scan the code", comment: "Text on QR code view to prompt viewer to scan the QR code on screen with their device camera.")
|
||||||
.foregroundColor(DamusColors.white)
|
.foregroundColor(DamusColors.white)
|
||||||
|
|||||||
Reference in New Issue
Block a user