mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-11 19:52:01 +00:00
add AppAccountsSelectorView
to navigation toolbar
This commit is contained in:
parent
d63436b1d9
commit
c9d8d85ef5
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue