diff options
Diffstat (limited to 'vnext/src/components/Header.js')
-rw-r--r-- | vnext/src/components/Header.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/src/components/Header.js b/vnext/src/components/Header.js index 8bf4bc8d..91fa02fd 100644 --- a/vnext/src/components/Header.js +++ b/vnext/src/components/Header.js @@ -66,11 +66,11 @@ export default class Header extends React.Component { this.wScrollBefore = this.wScrollCurrent; } render() { - return (<header id="header" ref={this.header} style={this.props.style}>{this.props.children}</header>); + return (<header id="header" ref={this.header} style={this.props.style || {}}>{this.props.children}</header>); } } Header.propTypes = { children: PropTypes.node, - style: PropTypes.style + style: PropTypes.object }; |