diff options
author | 2018-12-07 15:57:53 +0300 | |
---|---|---|
committer | 2023-01-13 10:37:54 +0300 | |
commit | 231f880af5634885bfa1a494eccef92bbf72c214 (patch) | |
tree | 86a93d3807ee5b16c629bfcffa98563626808249 /vnext/src/components/Header.js | |
parent | ff8855f3a5d10bed084406ae5a7a69d4ed2f24de (diff) |
Loading fixes
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 }; |