Move Relay configuration to its own section on the sidebar

Changelog-Changed: Moved relay config to its own sidebar entry
This commit is contained in:
William Casarin
2023-01-30 15:49:03 -08:00
parent 7d410bff34
commit d4068f8d52
6 changed files with 131 additions and 82 deletions

View File

@@ -115,6 +115,12 @@ struct SideMenuView: View {
.foregroundColor(textColor())
}
NavigationLink(destination: RelayConfigView(state: damus_state)) {
Label(NSLocalizedString("Relays", comment: "Sidebar menu label for Relays view."), systemImage: "network")
.font(.title2)
.foregroundColor(textColor())
}
NavigationLink(destination: ConfigView(state: damus_state).environmentObject(user_settings)) {
Label(NSLocalizedString("Settings", comment: "Sidebar menu label for accessing the app settings"), systemImage: "gear")
.font(.title2)