add AppAccountsSelectorView to navigation toolbar

This commit is contained in:
Duong Thai 2024-03-11 17:58:50 +07:00
parent d63436b1d9
commit c9d8d85ef5

View file

@ -12,6 +12,7 @@ import DesignSystem
import RSS import RSS
import Env import Env
import Network import Network
import AppAccount
@MainActor @MainActor
public struct RSSTab: View { public struct RSSTab: View {
@ -40,6 +41,10 @@ public struct RSSTab: View {
.withSheetDestinations(sheetDestinations: $routerPath.presentedSheet) .withSheetDestinations(sheetDestinations: $routerPath.presentedSheet)
.toolbar { .toolbar {
if client.isAuth { if client.isAuth {
ToolbarItem(placement: .navigationBarLeading) {
AppAccountsSelectorView(routerPath: routerPath)
}
ToolbarItem(placement: .navigationBarTrailing) { ToolbarItem(placement: .navigationBarTrailing) {
Button { Button {
Task { @MainActor in Task { @MainActor in