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
Refactor two modals #861
Refactor two modals #861
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/cal/calendso/9LEE95j2GwNLCXZBbcxgznpPrGdC |
@Jaibles tagging you in this due to design changes here. This is not a technical limitation Dialog vs. Model but a design choice. |
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.
lets wait for @Jaibles before mergin
we should continue to use the icons to make it visually more obvious what action happened |
Quick notes:
I can provide designs to clarify these later if necessary! |
oh, perfect. I will switch this to toasts! |
<div className="sm:flex sm:items-start mb-4"> | ||
<div className="mt-3 sm:mt-0 sm:text-left"> | ||
<h3 className="font-cal text-lg leading-6 font-bold text-gray-900" id="modal-title"> | ||
This feature is only available in paid plan |
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.
This should probably be "Pro plan". Not technically related to this PR
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.
agree
<div className="mt-5 sm:mt-4 sm:flex sm:flex-row-reverse gap-x-2"> | ||
<DialogClose asChild> | ||
<Button className="btn-wide btn-primary text-center" onClick={() => setModalOpen(false)}> | ||
<span className="m-auto">Dismiss</span> |
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.
Is this span needed?
<div className="sm:flex sm:items-start mb-4"> | ||
<div className="mt-3 sm:mt-0 sm:text-left"> | ||
<h3 className="font-cal text-lg leading-6 font-bold text-gray-900" id="modal-title"> | ||
This feature is only available in paid plan |
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.
agree
tested visually, works! |
@@ -62,11 +64,18 @@ function HideBrandingInput(props: { | |||
setModalOpen(true); |
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.
I wonder if it is possible to wrap the <input>
with <DialogTrigger asChild>
with e.stopPropagation(); like:
(e) => (!e.currentTarget.checked || props.user.plan !== "FREE") && e.stopPropagation()
In no way something that needs doing; but one can be curious.
Dialog
component