mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +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:
@@ -526,7 +526,7 @@ const StudioPage: React.FC<IProps> = ({ studio, tabKey }) => {
|
||||
<div className="detail-header-image">
|
||||
{encodingImage ? (
|
||||
<LoadingIndicator
|
||||
message={`${intl.formatMessage({ id: "encoding_image" })}...`}
|
||||
message={intl.formatMessage({ id: "actions.encoding_image" })}
|
||||
/>
|
||||
) : (
|
||||
renderImage()
|
||||
@@ -541,8 +541,8 @@ const StudioPage: React.FC<IProps> = ({ studio, tabKey }) => {
|
||||
</h2>
|
||||
{maybeRenderAliases()}
|
||||
<RatingSystem
|
||||
value={studio.rating100 ?? undefined}
|
||||
onSetRating={(value) => setRating(value ?? null)}
|
||||
value={studio.rating100}
|
||||
onSetRating={(value) => setRating(value)}
|
||||
/>
|
||||
{maybeRenderDetails()}
|
||||
{maybeRenderEditPanel()}
|
||||
|
||||
Reference in New Issue
Block a user