-
Notifications
You must be signed in to change notification settings - Fork 7
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
Conversation
… Smooth (only in pratter and mainnet)
packages/ui/src/ImportScreen.tsx
Outdated
} | ||
onChange={(e) => { | ||
setUseSameTag(!useSameTag); | ||
if (!e.target.checked) { |
There was a problem hiding this comment.
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
@@ -274,22 +291,53 @@ export default function ImportScreen({ | |||
}} | |||
> |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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?
reopen if required. Closing for now |
-Adding smooth fee recipient when the user checks "Solo" as protocol and "I want to join Smooth"