commit 35f7215154c84a8f87b1088bf38a2f1d8a610e1e
parent 749b97e663628389cb83c5c38c6f17e5cecb6c55
Author: Thomas <31560900+0xtlt@users.noreply.github.com>
Date: Fri, 23 Dec 2022 17:40:35 +0100
Better naming
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/damus/Views/ProfileView.swift b/damus/Views/ProfileView.swift
@@ -88,7 +88,7 @@ struct ProfileView: View {
@State private var selected_tab: ProfileTab = .posts
@StateObject var profile: ProfileModel
@StateObject var followers: FollowersModel
- @State private var showingSheet = false
+ @State private var showingEditProfile = false
@Environment(\.dismiss) var dismiss
@Environment(\.colorScheme) var colorScheme
@@ -137,10 +137,10 @@ struct ProfileView: View {
FollowButtonView(
target: profile.get_follow_target(),
follow_state: profile.pubkey == damus_state.pubkey ? .edit : damus_state.contacts.follow_state(profile.pubkey),
- perform: profile.pubkey == damus_state.pubkey ? { showingSheet.toggle() } : nil
+ perform: profile.pubkey == damus_state.pubkey ? { showingEditProfile.toggle() } : nil
)
- }.sheet(isPresented: $showingSheet) {
+ }.sheet(isPresented: $showingEditProfile) {
MetadataView(damus_state: damus_state, profileModel: profile)
}