mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Form-related fixes, improvements and refactoring (#4283)
* Fix another validateDOMNesting error * Fix React.forwardRef error * Fix encoding_image intl message * Return null instead of undefined from RatingSystem * DurationInput tweaks * DateInput tweaks, remove unused utils functions * Refactor and deduplicate edit form rendering * Improve/fix yup validation
This commit is contained in:
@@ -662,7 +662,11 @@ export const StudioSelect: React.FC<
|
||||
props.noSelectionString ??
|
||||
intl.formatMessage(
|
||||
{ id: "actions.select_entity" },
|
||||
{ entityType: intl.formatMessage({ id: "studio" }) }
|
||||
{
|
||||
entityType: intl.formatMessage({
|
||||
id: props.isMulti ? "studios" : "studio",
|
||||
}),
|
||||
}
|
||||
)
|
||||
}
|
||||
creatable={props.creatable ?? defaultCreatable}
|
||||
@@ -705,7 +709,11 @@ export const MovieSelect: React.FC<IFilterProps> = (props) => {
|
||||
props.noSelectionString ??
|
||||
intl.formatMessage(
|
||||
{ id: "actions.select_entity" },
|
||||
{ entityType: intl.formatMessage({ id: "movie" }) }
|
||||
{
|
||||
entityType: intl.formatMessage({
|
||||
id: props.isMulti ? "movies" : "movie",
|
||||
}),
|
||||
}
|
||||
)
|
||||
}
|
||||
creatable={props.creatable ?? defaultCreatable}
|
||||
@@ -726,7 +734,7 @@ export const TagSelect: React.FC<
|
||||
props.noSelectionString ??
|
||||
intl.formatMessage(
|
||||
{ id: "actions.select_entity" },
|
||||
{ entityType: intl.formatMessage({ id: "tags" }) }
|
||||
{ entityType: intl.formatMessage({ id: props.isMulti ? "tags" : "tag" }) }
|
||||
);
|
||||
|
||||
const { configuration } = React.useContext(ConfigurationContext);
|
||||
|
||||
Reference in New Issue
Block a user