mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54: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:
@@ -14,7 +14,7 @@ import {
|
||||
StringSetting,
|
||||
} from "../Inputs";
|
||||
import { useSettings } from "../context";
|
||||
import DurationUtils from "src/utils/duration";
|
||||
import TextUtils from "src/utils/text";
|
||||
import * as GQL from "src/core/generated-graphql";
|
||||
import {
|
||||
imageLightboxDisplayModeIntlMap,
|
||||
@@ -361,7 +361,7 @@ export const SettingsInterfacePanel: React.FC = () => {
|
||||
/>
|
||||
)}
|
||||
renderValue={(v) => {
|
||||
return <span>{DurationUtils.secondsToString(v ?? 0)}</span>;
|
||||
return <span>{TextUtils.secondsToTimestamp(v ?? 0)}</span>;
|
||||
}}
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user