Skip to content

Commit

Permalink
fix(core): add empty state to addresses page
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-yevhenii-buliuk committed Oct 18, 2024
1 parent 49168db commit ea25fac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ export const AddressBook = ({
<p>{accountState.message}</p>
</Message>
)}
{!addressesCount && (
<p className="py-12 text-center border-t">
{t('emptyAddresses')}
</p>
)}
<ul className="mb-12">
{addressBook.map(
({
Expand Down
1 change: 1 addition & 0 deletions core/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"title": "Addresses",
"addNewAddress": "Add new address",
"editButton": "Edit",
"emptyAddresses": "No addresses added",
"deleteButton": "Delete",
"confirmDeleteAddress": "Delete address",
"deleteModalTitle": "Are you sure you want to delete this address?",
Expand Down

0 comments on commit ea25fac

Please sign in to comment.