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:
@@ -921,10 +921,8 @@ export const LightboxComponent: React.FC<IProps> = ({
|
||||
/>
|
||||
</div>
|
||||
<RatingSystem
|
||||
value={currentImage?.rating100 ?? undefined}
|
||||
onSetRating={(v) => {
|
||||
setRating(v ?? null);
|
||||
}}
|
||||
value={currentImage?.rating100}
|
||||
onSetRating={(v) => setRating(v)}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user