mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-25 17:51:01 +00:00
Bind tabs to client.id
This commit is contained in:
parent
498c2129fb
commit
363164d96d
5 changed files with 5 additions and 5 deletions
|
@ -38,7 +38,7 @@ struct ExploreTab: View {
|
||||||
routerPath.path = []
|
routerPath.path = []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.onChange(of: currentAccount.account?.id) { _ in
|
.onChange(of: client.id) { _ in
|
||||||
routerPath.path = []
|
routerPath.path = []
|
||||||
}
|
}
|
||||||
.onAppear {
|
.onAppear {
|
||||||
|
|
|
@ -37,7 +37,7 @@ struct MessagesTab: View {
|
||||||
routerPath.path = []
|
routerPath.path = []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.onChange(of: currentAccount.account?.id) { _ in
|
.onChange(of: client.id) { _ in
|
||||||
routerPath.path = []
|
routerPath.path = []
|
||||||
}
|
}
|
||||||
.onAppear {
|
.onAppear {
|
||||||
|
|
|
@ -79,7 +79,7 @@ struct NotificationsTab: View {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.onChange(of: currentAccount.account?.id) { _ in
|
.onChange(of: client.id) { _ in
|
||||||
routerPath.path = []
|
routerPath.path = []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ struct ProfileTab: View {
|
||||||
routerPath.path = []
|
routerPath.path = []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.onChange(of: currentAccount.account?.id) { _ in
|
.onChange(of: client.id) { _ in
|
||||||
routerPath.path = []
|
routerPath.path = []
|
||||||
}
|
}
|
||||||
.onAppear {
|
.onAppear {
|
||||||
|
|
|
@ -81,7 +81,7 @@ struct TimelineTab: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.onChange(of: currentAccount.account?.id) { _ in
|
.onChange(of: client.id) { _ in
|
||||||
routerPath.path = []
|
routerPath.path = []
|
||||||
}
|
}
|
||||||
.onChange(of: timeline) { timeline in
|
.onChange(of: timeline) { timeline in
|
||||||
|
|
Loading…
Reference in a new issue