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:
UncleRoger33 2021-03-31 07:55:15 +03:00 committed by GitHub
parent ccb96c3795
commit 2c2e56d33a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -76,7 +76,7 @@ There is a [directory of themes](https://github.com/stashapp/stash/wiki/Themes)
## CSS Customization ## 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). 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) Answers to frequently asked questions can be found [on our Wiki](https://github.com/stashapp/stash/wiki/FAQ)

View file

@ -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 ( return (
<Form.Group controlId={field} as={Row}> <Form.Group controlId={field} as={Row}>
<Form.Label column xs={labelXS} xl={labelXL}> <Form.Label column xs={labelXS} xl={labelXL}>
@ -734,7 +734,7 @@ export const PerformerEditPanel: React.FC<IPerformerDetails> = ({
<Col xs={fieldXS} xl={fieldXL}> <Col xs={fieldXS} xl={fieldXL}>
<Form.Control <Form.Control
className="text-input" className="text-input"
placeholder={title} placeholder={placeholder ?? title}
{...formik.getFieldProps(field)} {...formik.getFieldProps(field)}
isInvalid={!!formik.getFieldMeta(field).error} isInvalid={!!formik.getFieldMeta(field).error}
/> />
@ -805,7 +805,7 @@ export const PerformerEditPanel: React.FC<IPerformerDetails> = ({
</Col> </Col>
</Form.Group> </Form.Group>
{renderTextField("birthdate", "Birthdate")} {renderTextField("birthdate", "Birthdate", "YYYY-MM-DD")}
{renderTextField("country", "Country")} {renderTextField("country", "Country")}
{renderTextField("ethnicity", "Ethnicity")} {renderTextField("ethnicity", "Ethnicity")}
{renderTextField("eye_color", "Eye Color")} {renderTextField("eye_color", "Eye Color")}