Skip to content

Commit 227fc89

Browse files
committed
style: Delete defaultProps from Icon
1 parent 5d59329 commit 227fc89

File tree

4 files changed

+0
-16
lines changed

4 files changed

+0
-16
lines changed

snapshots/demo-js/Icon.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,4 @@ export const Icon = ({ name, ...rest }) => {
1919
return null;
2020
};
2121

22-
Icon.defaultProps = {
23-
size: 18,
24-
};
25-
2622
export default Icon;

snapshots/demo-ts/Icon_Custom_Name.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,4 @@ export const Icon_Custom_Name: FunctionComponent<Props> = ({ name, ...rest }) =>
2929
return null;
3030
};
3131

32-
Icon_Custom_Name.defaultProps = {
33-
size: 20,
34-
};
35-
3632
export default Icon_Custom_Name;

src/templates/Icon.js.template

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,4 @@ export const #SummaryIcon# = ({ name, ...rest }) => {
1111
return null;
1212
};
1313

14-
#SummaryIcon#.defaultProps = {
15-
size: #size#,
16-
};
17-
1814
export default #SummaryIcon#;

src/templates/Icon.tsx.template

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,4 @@ export const #SummaryIcon#: FunctionComponent<Props> = ({ name, ...rest }) => {
2121
return null;
2222
};
2323

24-
#SummaryIcon#.defaultProps = {
25-
size: #size#,
26-
};
27-
2824
export default #SummaryIcon#;

0 commit comments

Comments
 (0)