contentview: use TabButton for notifications
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -71,12 +71,7 @@ struct ContentView: View {
|
|||||||
|
|
||||||
var NotificationTab: some View {
|
var NotificationTab: some View {
|
||||||
ZStack(alignment: .center) {
|
ZStack(alignment: .center) {
|
||||||
Button(action: {switch_timeline(.notifications)}) {
|
TabButton(timeline: .notifications, img: "bell")
|
||||||
Label("", systemImage: selected_timeline == .notifications ? "bell.fill" : "bell")
|
|
||||||
.contentShape(Rectangle())
|
|
||||||
.frame(maxWidth: .infinity, minHeight: 30.0)
|
|
||||||
}
|
|
||||||
.foregroundColor(selected_timeline != .notifications ? .gray : .primary)
|
|
||||||
|
|
||||||
if new_notifications {
|
if new_notifications {
|
||||||
Circle()
|
Circle()
|
||||||
|
|||||||
Reference in New Issue
Block a user