Skip to content

Conversation

@JJassonn69
Copy link
Contributor

Annying double (X) in the dialog boxes when interacting with the contracts fixed.

@vercel
Copy link

vercel bot commented Feb 26, 2025

@JJassonn69 is attempting to deploy a commit to the Livepeer Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@rozzrr rozzrr left a comment

Choose a reason for hiding this comment

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

good work! 🥇 ive ran this using my branch to see there is only one X present now. left a few comments, but generally just optional / discussion points that were probably implemented a long time ago!

if (!latestTransaction || latestTransaction.step !== "summary") {
return null;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

might be worth adding some comments above the if statement so its clear on why this is important / relevant to this dialog. (just for future devs like me to get a clearer view)

import CloseIcon from "../../public/img/close.svg";

const rotate = keyframes({
"100%": { transform: "rotate(360deg)" },
Copy link
Contributor

Choose a reason for hiding this comment

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

summary could maybe live in a constant / enum if we expect further steps / change down the line. or if this needed elsewhere would make sense to have it set once.

</Flex>

<Dialog
open={true}
Copy link
Contributor

Choose a reason for hiding this comment

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

dialog is always true, which is fine since we are controlling this via the if statement above, but as this isnt a "fully" controlled dialog - totally optional but we could have a boolean value which is determined such as isOpen = !!latestTransaction && ....stuff and then using the isOpen as the open state value. This way we avoid returning null and might be easier to extend if we introduce more complex scenarios down the line.

just a thought - current approch works fine too 👍

>
Close
</Button>
<DialogClose asChild>
Copy link
Contributor

Choose a reason for hiding this comment

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

nice work here to wrap the close button 👍

@rickstaa rickstaa requested a review from ECWireless December 24, 2025 16:25
@rickstaa
Copy link
Member

@ECWireless since the codebase changed alot feel free to open a new pull request and make @JJassonn69 a co-author.

@rickstaa rickstaa linked an issue Dec 24, 2025 that may be closed by this pull request
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.

Waiting for confirmation modal renders 2 close buttons

3 participants