Skip to content
This repository was archived by the owner on Jul 29, 2025. It is now read-only.

Commit 2b4960e

Browse files
committed
feat(fab): Change node to element.
1 parent 53c05aa commit 2b4960e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/fab/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,12 @@ Fab.propTypes = {
4242
mini: PropTypes.bool,
4343
className: PropTypes.string,
4444
children: PropTypes.oneOfType([
45-
PropTypes.arrayOf(PropTypes.node),
46-
PropTypes.node,
47-
]),
45+
PropTypes.arrayOf(PropTypes.element),
46+
PropTypes.element,
47+
]).isRequired,
4848
};
4949

5050
Fab.defaultProps = {
5151
mine: false,
5252
className: '',
53-
children: [],
5453
};

test/screenshot/fab/standard.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import MaterialIcon from '../../../packages/material-icon';
88

99
ReactDOM.render((
1010
<div>
11+
<Fab>
12+
</Fab>
1113
<Fab className="demo-button">
1214
<i className="material-icons">favorite</i>
1315
</Fab>

0 commit comments

Comments
 (0)