Skip to content
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

feat: make token amount details configurable [LW-11733] #65

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

DominikGuzei
Copy link
Member

This PR makes the AssetTable.TokenAmount details more configurable (previously this was hardcoded for fiatPrice) so that its possible to apply any text color:

image

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

Copy link
Collaborator

@pczeglik-iohk pczeglik-iohk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DominikGuzei I think it should be marked as BREAKING CHANGE, as we are modifying api of this component.

Copy link
Collaborator

@pczeglik-iohk pczeglik-iohk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you be willing to improve this issue spot by CI

image

@DominikGuzei DominikGuzei force-pushed the feat/lw-11733-configurable-token-amount-details branch 3 times, most recently from aeb6a0a to fa381d7 Compare December 11, 2024 13:52
BREAKING CHANGE: TokenAmount props changed from a simple fiatPrice prop
to a more flexible "details" prop which can further be customized by
passing "detailsColor" and "detailsWeight" to cover more scenarios
@DominikGuzei DominikGuzei force-pushed the feat/lw-11733-configurable-token-amount-details branch from fa381d7 to bfab9e7 Compare December 11, 2024 15:26
@DominikGuzei
Copy link
Member Author

@pczeglik-iohk ready for final review 🙏

Copy link
Collaborator

@pczeglik-iohk pczeglik-iohk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good. Thank you @DominikGuzei

@pczeglik-iohk pczeglik-iohk merged commit 77ad351 into main Dec 11, 2024
4 checks passed
@pczeglik-iohk pczeglik-iohk deleted the feat/lw-11733-configurable-token-amount-details branch December 11, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants