damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | LICENSE

commit b34d3956b513e28ab714a7a6aba646ef6d7519fa
parent e464a86282461b37e81ed85018d4db8134efe64f
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 19 May 2022 08:22:53 -0700

contentview: use TabButton for notifications

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mdamus/ContentView.swift | 7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git 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()