Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
suhailsaqan committed Aug 8, 2023
1 parent bea4cbc commit 2858d93
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions damus/Views/DMChatView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,6 @@ struct DMChatView: View, KeyboardReadable {
var Header: some View {
let profile = damus_state.profiles.lookup(id: pubkey)
return NavigationLink(value: Route.ProfileByKey(pubkey: pubkey)) {
HStack {
ProfilePicView(pubkey: pubkey, size: 24, highlight: .none, profiles: damus_state.profiles, disable_animation: damus_state.settings.disable_animation)

ProfileName(pubkey: pubkey, profile: profile, damus: damus_state)
}
}
.buttonStyle(PlainButtonStyle())
}

var Header: some View {
let profile = damus_state.profiles.lookup(id: pubkey)
let profile_page = ProfileView(damus_state: damus_state, pubkey: pubkey)
return NavigationLink(destination: profile_page) {
HStack {
ProfilePicView(pubkey: pubkey, size: 24, highlight: .none, profiles: damus_state.profiles, disable_animation: damus_state.settings.disable_animation)

Expand Down

0 comments on commit 2858d93

Please sign in to comment.