Skip to content

Commit

Permalink
Improved UI for importing contacts + addresses feedback changes
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamkmr04 committed Dec 15, 2023
1 parent cf69b65 commit 0bfd67c
Show file tree
Hide file tree
Showing 3 changed files with 229 additions and 128 deletions.
2 changes: 1 addition & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@
"views.NostrContacts.NostrContacts": "Nostr Contacts",
"views.NostrContacts.LookUpContacts": "Look up Contacts",
"views.NostrContacts.ImportAllContacts": "Import all Contacts",
"views.ContactDetails.AddToTheContacts": "Add to the Contacts",
"views.ContactDetails.SaveToContacts": "Save to Contacts",
"views.Settings.title": "Settings",
"views.Settings.enabled": "Enabled",
"views.Settings.disabled": "Disabled",
Expand Down
12 changes: 9 additions & 3 deletions views/ContactDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,14 @@ export default class ContactDetails extends React.Component<
<Screen>
<Header
leftComponent="Back"
centerComponent={<EditContactButton />}
rightComponent={<StarButton />}
centerComponent={
!this.state.isNostrContact && (
<EditContactButton />
)
}
rightComponent={
!this.state.isNostrContact && <StarButton />
}
centerContainerStyle={{
paddingRight: 6,
marginTop: -3
Expand Down Expand Up @@ -553,7 +559,7 @@ export default class ContactDetails extends React.Component<
<Button
onPress={() => this.importToContacts()}
title={localeString(
'views.ContactDetails.AddToTheContacts'
'views.ContactDetails.SaveToContacts'
)}
containerStyle={{ paddingBottom: 12 }}
/>
Expand Down
Loading

0 comments on commit 0bfd67c

Please sign in to comment.