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(frontend): transaction ui with variant and templating #3958

Merged
merged 5 commits into from
Dec 16, 2024

Conversation

peterpeterparker
Copy link
Member

Motivation

Svelte v5 seems to be stricter in terms of typing, which causes the linter to fail in #3929 when the TransactionUI is used to create a svelte:component. After reviewing the issue, I also noticed that we are spreading the transaction within the transactionUi while mixing it with a token. From a typing perspective, I believe it would be safer to maintain a clear separation between these two pieces of information.

This PR addresses both issues.

Changes

  • Replace svelte:component by a direct usage of the component in the template
  • Do not spread the transaction in the transaction UI
  • Adapt types and consumers accordingly

@peterpeterparker peterpeterparker marked this pull request as ready for review December 12, 2024 08:19
@peterpeterparker peterpeterparker requested a review from a team as a code owner December 12, 2024 08:19
@peterpeterparker peterpeterparker changed the title feat: transaction ui with variant and templating feat(frontend): transaction ui with variant and templating Dec 12, 2024
Copy link
Collaborator

@AntonioVentilii AntonioVentilii left a comment

Choose a reason for hiding this comment

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

LGTM tks

@peterpeterparker peterpeterparker merged commit 31a217c into main Dec 16, 2024
20 checks passed
@peterpeterparker peterpeterparker deleted the feat/transaction-ui-with-cmp branch December 16, 2024 05:34
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