-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: Use shared Switch
component instead of MUISwitch directly
#3929
Conversation
4d865ee
to
3975db7
Compare
3975db7
to
b8e60cb
Compare
Removed vultr server and associated DNS entries |
Switch
component instead of MUISwitch directly
formControlLabelProps={{ | ||
sx: { | ||
marginBottom: 0.5, | ||
[`& .${formControlLabelClasses.label}`]: { | ||
fontWeight: FONT_WEIGHT_BOLD, | ||
textTransform: "capitalize", | ||
fontSize: 19, | ||
}, |
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.
Switches in these forms are visually different - the label is also really the title of the card.
We could make this a variant, or could attempt to standardise here, but this seemed the best way to handle this initially.
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.
Thanks for picking this one up!
What does this PR do?
Switch
component, with label, to be used across PlanX.eslint
rule to enforce that the shared component should be imported