You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace default props with default parameter in functional components (#3145)
* replace default props with default parameters in breadcrumb, builder header and card components
* replace default props with default parameters in carousel, combobox, data table and files components
* replace default props with default parameter in forms, global header and global navigation bar components
* replace default props with default parameter for icon and illustration components
* replace default props with default parameters in components
* replace default props with default parameter in components
* fix issues caught by snapshot tests
* fix combobox browser test
* replace defaultProps with default parameter in tree item component
Copy file name to clipboardExpand all lines: components/card/filter.jsx
+2-8Lines changed: 2 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -13,9 +13,7 @@ import { CARD_FILTER } from '../../utilities/constants';
13
13
/**
14
14
* A default filter or search input for Cards that contain items.
15
15
*/
16
-
constFilter=(props)=>{
17
-
const{ id, placeholder, onChange, ...rest}=props;
18
-
16
+
constFilter=({ id, placeholder ='Find in List', onChange, ...rest})=>{
19
17
return(
20
18
<Input
21
19
{...rest}
@@ -45,11 +43,7 @@ Filter.propTypes = {
45
43
/**
46
44
* Text present in input until the user enters text. This text will also be used for a visually hidden label on the filter `input` element for accessibility.
0 commit comments