-
Notifications
You must be signed in to change notification settings - Fork 237
fix: error message for send when address has no balance for rent #561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
37996b4
fix: error message for send when address has no balance for rent
gamalielhere 4cde3ad
devop: remove import
gamalielhere e52f87a
chore: remove error for rent minimum, add rent to transaction
gamalielhere 9c1e48f
devop: add code rabbit suggestions
gamalielhere 54f1211
fix: change error message when only 1 qupte is returned on swap
gamalielhere 00e525d
chore: remove return
gamalielhere 9c24b1f
fix: return value on rango, set min if 0
gamalielhere 50bebbb
devop: add symbols to message
gamalielhere fec49c1
fix: sending to empty addresses
kvhnuke 4db7a02
fix: native fee from changelly
gamalielhere c17d75c
fix: add network solana to specific error, fix changelly additionalna…
gamalielhere 1ba4048
devop: revert
gamalielhere ad8c2ee
fix: swap error messages
kvhnuke 3716d40
fix: swap error messages
kvhnuke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
53 changes: 53 additions & 0 deletions
53
packages/extension/src/providers/solana/ui/send-transaction/components/send-alert.vue
This file contains hidden or 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,53 @@ | ||
| <template> | ||
| <div class="send-alert" role="alert" aria-live="polite"> | ||
| <alert-icon /> | ||
| <p aria-label="Error message">{{ errorMsg }}</p> | ||
| </div> | ||
| </template> | ||
|
|
||
| <script setup lang="ts"> | ||
| import AlertIcon from '@action/icons/send/alert-icon.vue'; | ||
|
|
||
| interface IProps { | ||
| errorMsg: string; | ||
| } | ||
|
|
||
| defineProps<IProps>(); | ||
| </script> | ||
|
|
||
| <style lang="less"> | ||
| @import '@action/styles/theme.less'; | ||
|
|
||
| .send-alert { | ||
| margin: 0 32px 8px 32px; | ||
| background: @error01; | ||
| border-radius: 10px; | ||
| padding: 12px 16px 12px 57px; | ||
| position: relative; | ||
| box-sizing: border-box; | ||
|
|
||
| svg { | ||
| position: absolute; | ||
| left: 16px; | ||
| top: 50%; | ||
| margin-top: -12px; | ||
| } | ||
|
|
||
| p { | ||
| font-weight: 400; | ||
| font-size: 14px; | ||
| line-height: 20px; | ||
| letter-spacing: 0.25px; | ||
| color: @error; | ||
| margin: 0; | ||
|
|
||
| a { | ||
| color: @error; | ||
|
|
||
| &:hover { | ||
| text-decoration: none; | ||
| } | ||
| } | ||
| } | ||
| } | ||
| </style> |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.