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

Mateu/add_smooth_to_import_view #280

Closed
wants to merge 10 commits into from

Conversation

mateumiralles
Copy link
Contributor

-Adding smooth fee recipient when the user checks "Solo" as protocol and "I want to join Smooth"

@mateumiralles mateumiralles requested a review from a team as a code owner January 2, 2024 10:20
}
onChange={(e) => {
setUseSameTag(!useSameTag);
if (!e.target.checked) {
Copy link
Contributor

Choose a reason for hiding this comment

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

You should use instead a useEffect at the top of the component that will be triggered on useSameTag value changes

packages/ui/src/ImportScreen.tsx Outdated Show resolved Hide resolved
@@ -274,22 +291,53 @@ export default function ImportScreen({
}}
>
Copy link
Contributor

Choose a reason for hiding this comment

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

Would not be more straight forward to implement here something like

{ tag === "solo" && <MenuItem...

@@ -331,7 +380,14 @@ export default function ImportScreen({
useSameFeerecipient,
getFeeRecipientFieldHelperText,
isFeeRecipientFieldWrong,
tagSelectOptions
tagSelectOptions,
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure you need all of these new args? could some of them be removed or declare in this component?

packages/ui/src/ImportScreen.tsx Outdated Show resolved Hide resolved
@pablomendezroyo
Copy link
Contributor

reopen if required. Closing for now

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