-
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
chore: Make SettingsForm
shared and generic
#3308
Conversation
import InputLegend from "ui/editor/InputLegend"; | ||
import ErrorWrapper from "ui/shared/ErrorWrapper"; | ||
|
||
type SettingsFormProps<TFormikValues> = { |
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.
Here's the core difference in this PR.
The previous props took a hardcoded TeamTheme
, we're now using a generic type here.
preview?: React.ReactElement; | ||
}; | ||
|
||
export const SettingsForm = <TFormikValues,>({ |
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.
Apart from changes to types and an update of the ErrorWrapper
id, this component is copy/pasted from /DesignSettings/index.tsx
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.
Looks good to me, I can apply it to the Team Settings PR #3305 and suggest changes if any arise
@RODO94 Once CI is done I'll merge to |
Removed vultr server and associated DNS entries |
What does this PR do?
SettingsForm
to a shared location so that it can be used outside the context of design settingsTeamTheme