Merge branch 'master' into improve-wallet-selector

This commit is contained in:
Suhail Saqan
2022-12-30 01:41:05 -06:00
committed by GitHub
17 changed files with 310 additions and 88 deletions

View File

@@ -242,6 +242,17 @@ struct ProfileView: View {
followers.subscribe()
}
}
if let relays = profile.relays {
NavigationLink(destination: UserRelaysView(state: damus_state, pubkey: profile.pubkey, relays: Array(relays.keys).sorted())) {
Text("\(relays.keys.count)")
.font(.subheadline.weight(.medium))
Text("Relays")
.font(.subheadline)
.foregroundColor(.gray)
}
.buttonStyle(PlainButtonStyle())
}
}
}
}