mirror of https://github.com/stashapp/stash.git
Add format to performer field placeholder (#1232)
* Update README.md Extra letter "p" in the title removed and "(FAQ)" suffix added. Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>
This commit is contained in:
parent
ccb96c3795
commit
2c2e56d33a
|
@ -76,7 +76,7 @@ There is a [directory of themes](https://github.com/stashapp/stash/wiki/Themes)
|
|||
## CSS Customization
|
||||
You can make Stash interface fit your desired style with [Custom CSS snippets](https://github.com/stashapp/stash/wiki/Custom-CSS-snippets) and [CSS Tweaks](https://github.com/stashapp/stash/wiki/CSS-Tweaks).
|
||||
|
||||
# Suppport
|
||||
# Support (FAQ)
|
||||
|
||||
Answers to frequently asked questions can be found [on our Wiki](https://github.com/stashapp/stash/wiki/FAQ)
|
||||
|
||||
|
|
|
@ -725,7 +725,7 @@ export const PerformerEditPanel: React.FC<IPerformerDetails> = ({
|
|||
);
|
||||
}
|
||||
|
||||
function renderTextField(field: string, title: string) {
|
||||
function renderTextField(field: string, title: string, placeholder?: string) {
|
||||
return (
|
||||
<Form.Group controlId={field} as={Row}>
|
||||
<Form.Label column xs={labelXS} xl={labelXL}>
|
||||
|
@ -734,7 +734,7 @@ export const PerformerEditPanel: React.FC<IPerformerDetails> = ({
|
|||
<Col xs={fieldXS} xl={fieldXL}>
|
||||
<Form.Control
|
||||
className="text-input"
|
||||
placeholder={title}
|
||||
placeholder={placeholder ?? title}
|
||||
{...formik.getFieldProps(field)}
|
||||
isInvalid={!!formik.getFieldMeta(field).error}
|
||||
/>
|
||||
|
@ -805,7 +805,7 @@ export const PerformerEditPanel: React.FC<IPerformerDetails> = ({
|
|||
</Col>
|
||||
</Form.Group>
|
||||
|
||||
{renderTextField("birthdate", "Birthdate")}
|
||||
{renderTextField("birthdate", "Birthdate", "YYYY-MM-DD")}
|
||||
{renderTextField("country", "Country")}
|
||||
{renderTextField("ethnicity", "Ethnicity")}
|
||||
{renderTextField("eye_color", "Eye Color")}
|
||||
|
|
Loading…
Reference in New Issue