From b34d3956b513e28ab714a7a6aba646ef6d7519fa Mon Sep 17 00:00:00 2001 From: William Casarin Date: Thu, 19 May 2022 08:22:53 -0700 Subject: [PATCH] contentview: use TabButton for notifications Signed-off-by: William Casarin --- damus/ContentView.swift | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/damus/ContentView.swift b/damus/ContentView.swift index 4fd0a02..6037722 100644 --- a/damus/ContentView.swift +++ b/damus/ContentView.swift @@ -71,12 +71,7 @@ struct ContentView: View { var NotificationTab: some View { ZStack(alignment: .center) { - Button(action: {switch_timeline(.notifications)}) { - Label("", systemImage: selected_timeline == .notifications ? "bell.fill" : "bell") - .contentShape(Rectangle()) - .frame(maxWidth: .infinity, minHeight: 30.0) - } - .foregroundColor(selected_timeline != .notifications ? .gray : .primary) + TabButton(timeline: .notifications, img: "bell") if new_notifications { Circle()