fix build errors
This commit is contained in:
@@ -139,12 +139,13 @@ struct ProfileView: View {
|
|||||||
.symbolRenderingMode(.palette)
|
.symbolRenderingMode(.palette)
|
||||||
.font(.system(size: 34).weight(.thin))
|
.font(.system(size: 34).weight(.thin))
|
||||||
.foregroundStyle(colorScheme == .light ? .black : .white, colorScheme == .light ? .black.opacity(0.1) : .white.opacity(0.2))
|
.foregroundStyle(colorScheme == .light ? .black : .white, colorScheme == .light ? .black.opacity(0.1) : .white.opacity(0.2))
|
||||||
}.contextMenu {
|
.contextMenu {
|
||||||
Button {
|
Button {
|
||||||
UIPasteboard.general.string = profile.lnurl ?? ""
|
UIPasteboard.general.string = profile.lnurl ?? ""
|
||||||
} label: {
|
} label: {
|
||||||
Label("Copy LNUrl", systemImage: "doc.on.doc")
|
Label("Copy LNUrl", systemImage: "doc.on.doc")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}.sheet(isPresented: $showingSelectWallet, onDismiss: {showingSelectWallet = false}) {
|
}.sheet(isPresented: $showingSelectWallet, onDismiss: {showingSelectWallet = false}) {
|
||||||
SelectWalletView(showingSelectWallet: $showingSelectWallet, invoice: $inv)
|
SelectWalletView(showingSelectWallet: $showingSelectWallet, invoice: $inv)
|
||||||
}
|
}
|
||||||
@@ -172,8 +173,8 @@ struct ProfileView: View {
|
|||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
if let profile = data {
|
if let profile = data {
|
||||||
if (profile?.lud06 != nil || profile?.lud16 != nil) {
|
if (profile.lud06 != nil || profile.lud16 != nil) {
|
||||||
LNButton(lud06: data?.lud06, lud16: data?.lud16,, profile: profile)
|
LNButton(lud06: profile.lud06, lud16: profile.lud16, profile: profile)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user