|
@ -53,23 +53,23 @@ struct SideMenuView: View { |
|
|
let followers = FollowersModel(damus_state: damus_state, target: damus_state.pubkey) |
|
|
let followers = FollowersModel(damus_state: damus_state, target: damus_state.pubkey) |
|
|
let profile_model = ProfileModel(pubkey: damus_state.pubkey, damus: damus_state) |
|
|
let profile_model = ProfileModel(pubkey: damus_state.pubkey, damus: damus_state) |
|
|
|
|
|
|
|
|
if let picture = damus_state.profiles.lookup(id: damus_state.pubkey)?.picture { |
|
|
NavigationLink(destination: ProfileView(damus_state: damus_state, profile: profile_model, followers: followers)) { |
|
|
NavigationLink(destination: ProfileView(damus_state: damus_state, profile: profile_model, followers: followers)) { |
|
|
if let picture = damus_state.profiles.lookup(id: damus_state.pubkey)?.picture { |
|
|
ProfilePicView(pubkey: damus_state.pubkey, size: 60, highlight: .none, profiles: damus_state.profiles, picture: picture) |
|
|
ProfilePicView(pubkey: damus_state.pubkey, size: 60, highlight: .none, profiles: damus_state.profiles, picture: picture) |
|
|
|
|
|
} else { |
|
|
|
|
|
Image(systemName: "person.fill") |
|
|
} |
|
|
} |
|
|
} else { |
|
|
VStack(alignment: .leading) { |
|
|
Image(systemName: "person.fill") |
|
|
if let display_name = profile?.display_name { |
|
|
} |
|
|
Text(display_name) |
|
|
VStack(alignment: .leading) { |
|
|
.foregroundColor(textColor()) |
|
|
if let display_name = profile?.display_name { |
|
|
.font(.title) |
|
|
Text(display_name) |
|
|
} |
|
|
.foregroundColor(textColor()) |
|
|
if let name = profile?.name { |
|
|
.font(.title) |
|
|
Text("@" + name) |
|
|
} |
|
|
.foregroundColor(Color("DamusMediumGrey")) |
|
|
if let name = profile?.name { |
|
|
.font(.body) |
|
|
Text("@" + name) |
|
|
} |
|
|
.foregroundColor(Color("DamusMediumGrey")) |
|
|
|
|
|
.font(.body) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|