-
Notifications
You must be signed in to change notification settings - Fork 3
Fix dialog spacing + reset AddToListDialog #1484
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
Conversation
bfc75c0 to
d14b551
Compare
| use: { | ||
| loader: "swc-loader", | ||
| options: { | ||
| jsc: { | ||
| experimental: { | ||
| plugins: [["@swc/plugin-emotion", {}]], | ||
| }, | ||
| }, | ||
| }, | ||
| }, |
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 is https://www.npmjs.com/package/@swc/plugin-emotion
In particular, in dev mode, this gives us more useful class names. (production is unchanged).
Added in this PR in the course of trying to figure out where a style was coming from.
| alignItems: "start", | ||
| "> *": { | ||
| "> *:not(:last-child)": { | ||
| marginBottom: "4px", |
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.
| /** | ||
| * MUI Dialog's [TransitionProps](https://mui.com/material-ui/api/dialog/#props) | ||
| */ | ||
| TransitionProps?: DialogProps["TransitionProps"] |
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 have been removed when we made the dialogs "Slide down from top".
| {children} | ||
| {footerContent} |
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.
Anything that footerContent was used for can just be passed as part of the children.
(In a previous design, it needed to be separate)
| {mutation.isError && !formik.isSubmitting && ( | ||
| <Alert severity="error"> | ||
| There was a problem saving your list. Please try again later. | ||
| </Alert> | ||
| )} |
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.
gumaerc
left a comment
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.
👍
|
|
||
| return ( | ||
| <Dialog | ||
| <FormDialog |
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 had considered using FormDialog, but at first it didn't seem necessary since this is barely a form and there's only one input element. This makes sense though, it cleans things up and onReset fixes our issue with the selections persisting.


What are the relevant tickets?
This is a followup to #1463
Description (What does it do?)
This does two things:
Screenshots (if appropriate):
Before / After
How can this be tested?