From 7fde90638a093819640b4be5e0ad54d6f86c827b Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Fri, 11 Sep 2020 12:40:19 +0200 Subject: [PATCH] [docs] Normalize callback wording --- packages/material-ui/src/Chip/Chip.d.ts | 2 +- packages/material-ui/src/Chip/Chip.js | 2 +- packages/material-ui/src/NativeSelect/NativeSelect.d.ts | 2 +- packages/material-ui/src/NativeSelect/NativeSelect.js | 2 +- packages/material-ui/src/NativeSelect/NativeSelectInput.js | 2 +- packages/material-ui/src/Select/Select.d.ts | 2 +- packages/material-ui/src/Select/Select.js | 2 +- packages/material-ui/src/Select/SelectInput.js | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/material-ui/src/Chip/Chip.d.ts b/packages/material-ui/src/Chip/Chip.d.ts index 16cb55a6aeea67..3361a83cc8f496 100644 --- a/packages/material-ui/src/Chip/Chip.d.ts +++ b/packages/material-ui/src/Chip/Chip.d.ts @@ -117,7 +117,7 @@ export interface ChipTypeMap

{ */ label?: React.ReactNode; /** - * Callback function fired when the delete icon is clicked. + * Callback fired when the delete icon is clicked. * If set, the delete icon will be shown. */ onDelete?: React.EventHandler; diff --git a/packages/material-ui/src/Chip/Chip.js b/packages/material-ui/src/Chip/Chip.js index af9f0300d93ef0..47d2c04cf8a937 100644 --- a/packages/material-ui/src/Chip/Chip.js +++ b/packages/material-ui/src/Chip/Chip.js @@ -509,7 +509,7 @@ Chip.propTypes = { */ onClick: PropTypes.func, /** - * Callback function fired when the delete icon is clicked. + * Callback fired when the delete icon is clicked. * If set, the delete icon will be shown. */ onDelete: PropTypes.func, diff --git a/packages/material-ui/src/NativeSelect/NativeSelect.d.ts b/packages/material-ui/src/NativeSelect/NativeSelect.d.ts index a069ed3a68a4ef..b5e07cec4f6db0 100644 --- a/packages/material-ui/src/NativeSelect/NativeSelect.d.ts +++ b/packages/material-ui/src/NativeSelect/NativeSelect.d.ts @@ -52,7 +52,7 @@ export interface NativeSelectProps */ inputProps?: NativeSelectInputProps; /** - * Callback function fired when a menu item is selected. + * Callback fired when a menu item is selected. * * @param {object} event The event source of the callback. * You can pull out the new value by accessing `event.target.value` (string). diff --git a/packages/material-ui/src/NativeSelect/NativeSelect.js b/packages/material-ui/src/NativeSelect/NativeSelect.js index 393d2386027706..d3a459acdaf4db 100644 --- a/packages/material-ui/src/NativeSelect/NativeSelect.js +++ b/packages/material-ui/src/NativeSelect/NativeSelect.js @@ -171,7 +171,7 @@ NativeSelect.propTypes = { */ inputProps: PropTypes.object, /** - * Callback function fired when a menu item is selected. + * Callback fired when a menu item is selected. * * @param {object} event The event source of the callback. * You can pull out the new value by accessing `event.target.value` (string). diff --git a/packages/material-ui/src/NativeSelect/NativeSelectInput.js b/packages/material-ui/src/NativeSelect/NativeSelectInput.js index f9b3f669440c2c..e8079a3d305914 100644 --- a/packages/material-ui/src/NativeSelect/NativeSelectInput.js +++ b/packages/material-ui/src/NativeSelect/NativeSelectInput.js @@ -82,7 +82,7 @@ NativeSelectInput.propTypes = { */ name: PropTypes.string, /** - * Callback function fired when a menu item is selected. + * Callback fired when a menu item is selected. * * @param {object} event The event source of the callback. * You can pull out the new value by accessing `event.target.value` (string). diff --git a/packages/material-ui/src/Select/Select.d.ts b/packages/material-ui/src/Select/Select.d.ts index fc3a50279ef02f..933b790996ab47 100644 --- a/packages/material-ui/src/Select/Select.d.ts +++ b/packages/material-ui/src/Select/Select.d.ts @@ -106,7 +106,7 @@ export interface SelectProps */ native?: boolean; /** - * Callback function fired when a menu item is selected. + * Callback fired when a menu item is selected. * * @param {object} event The event source of the callback. * You can pull out the new value by accessing `event.target.value` (any). diff --git a/packages/material-ui/src/Select/Select.js b/packages/material-ui/src/Select/Select.js index 6289ddb067f5dd..90640282b713d1 100644 --- a/packages/material-ui/src/Select/Select.js +++ b/packages/material-ui/src/Select/Select.js @@ -177,7 +177,7 @@ Select.propTypes = { */ native: PropTypes.bool, /** - * Callback function fired when a menu item is selected. + * Callback fired when a menu item is selected. * * @param {object} event The event source of the callback. * You can pull out the new value by accessing `event.target.value` (any). diff --git a/packages/material-ui/src/Select/SelectInput.js b/packages/material-ui/src/Select/SelectInput.js index d8b0c630a2cb7e..eb58ecd1b34ab2 100644 --- a/packages/material-ui/src/Select/SelectInput.js +++ b/packages/material-ui/src/Select/SelectInput.js @@ -501,7 +501,7 @@ SelectInput.propTypes = { */ onBlur: PropTypes.func, /** - * Callback function fired when a menu item is selected. + * Callback fired when a menu item is selected. * * @param {object} event The event source of the callback. * You can pull out the new value by accessing `event.target.value` (any).