From 0eec5e4f0651439c5e38d7810696bb45073229e3 Mon Sep 17 00:00:00 2001 From: Hossein Soltanloo Date: Wed, 6 Nov 2019 10:37:41 +0330 Subject: [PATCH] Remove titles prop type from description --- docs/pages/api/autocomplete.md | 2 +- packages/material-ui-lab/src/Autocomplete/Autocomplete.d.ts | 2 +- packages/material-ui-lab/src/Autocomplete/Autocomplete.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/pages/api/autocomplete.md b/docs/pages/api/autocomplete.md index 9895bb1fc08489..2c2f22abb03bce 100644 --- a/docs/pages/api/autocomplete.md +++ b/docs/pages/api/autocomplete.md @@ -60,7 +60,7 @@ You can learn more about the difference by [reading this guide](/guides/minimizi | renderInput * | func | | Render the input.

**Signature:**
`function(params: object) => ReactNode`
*params:* null | | renderOption | func | | Render the option, use `getOptionLabel` by default.

**Signature:**
`function(option: any, state: object) => ReactNode`
*option:* The option to render.
*state:* The state of the component. | | renderTags | func | | Render the selected value.

**Signature:**
`function(value: any) => ReactNode`
*value:* The `value` provided to the component. | -| titles | { clearPopup: string, closePopup: string, openPopup: string } | { openPopup: 'Open popup', closePopup: 'Close popup', clearPopup: 'Clear',} | Object of titles to display when hovering the arrow or clear buttons. | +| titles | { clearPopup: string, closePopup: string, openPopup: string } | { openPopup: 'Open popup', closePopup: 'Close popup', clearPopup: 'Clear',} | Titles to display when hovering the arrow or clear buttons. | | value | any | | The input value. | The `ref` is forwarded to the root element. diff --git a/packages/material-ui-lab/src/Autocomplete/Autocomplete.d.ts b/packages/material-ui-lab/src/Autocomplete/Autocomplete.d.ts index 8ce7814e50f13e..d0dd9b7780ceaa 100644 --- a/packages/material-ui-lab/src/Autocomplete/Autocomplete.d.ts +++ b/packages/material-ui-lab/src/Autocomplete/Autocomplete.d.ts @@ -102,7 +102,7 @@ export interface AutocompleteProps */ renderTags?: (value: any, state: RenderValueState) => React.ReactNode; /** - * Object of titles to display when hovering the arrow or clear buttons. + * Titles to display when hovering the arrow or clear buttons. */ titles?: { openPopup: string; diff --git a/packages/material-ui-lab/src/Autocomplete/Autocomplete.js b/packages/material-ui-lab/src/Autocomplete/Autocomplete.js index 8d441d95c677b0..b7e7f8d855a4e6 100644 --- a/packages/material-ui-lab/src/Autocomplete/Autocomplete.js +++ b/packages/material-ui-lab/src/Autocomplete/Autocomplete.js @@ -560,7 +560,7 @@ Autocomplete.propTypes = { */ renderTags: PropTypes.func, /** - * Object of titles to display when hovering the arrow or clear buttons. + * Titles to display when hovering the arrow or clear buttons. */ titles: PropTypes.shape({ clearPopup: PropTypes.string.isRequired,