-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transaction list placeholder (#4185)
# Motivation [The design](https://www.figma.com/file/x8dk5axQUf8Bi43uUsqCHc/NNS-Production-%26-Hand-over?type=design&node-id=1319-1085&mode=design&t=BiIOfY7BQjiYMj8P-4) for the logged-out wallet page has a new placeholder for when there are no transactions. We should use this also when the user is logged in but there are no transactions. This PR introduces a simple component to use as the placeholder when there are no transactions and uses it just for the logged-in case. # Changes 1. Add `NoTransactions` component. 2. Use it instead of just text when there are no transactions. # Tests Unit tests and page objects were updated. # Todos - [x] Add entry to changelog (if necessary).
- Loading branch information
Showing
9 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
frontend/src/lib/components/accounts/NoTransactions.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<script lang="ts"> | ||
import TransactionIcon from "$lib/components/accounts/TransactionIcon.svelte"; | ||
import { i18n } from "$lib/stores/i18n"; | ||
</script> | ||
|
||
<div class="no-transaction description" data-tid="no-transactions-component"> | ||
<div class="transaction-icon"> | ||
<TransactionIcon type="received" /> | ||
</div> | ||
{$i18n.wallet.no_transactions} | ||
</div> | ||
|
||
<style lang="scss"> | ||
.no-transaction { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: var(--padding-2x); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters