gabrielbull / react-desktop

React UI Components for macOS High Sierra and Windows 10
http://reactdesktop.js.org
MIT License
9.52k stars 462 forks source link

Failed prop type: Invalid prop `title` of type `object` supplied to `TitleBar`, expected `string`. #91

Closed IDrinkMoreWater closed 7 years ago

IDrinkMoreWater commented 7 years ago

i need to implement :

 <TitleBar
     title={<p className="barHead"> <img src={logo} alt="overallLogo"/>HYD Application</p>}
     controls
     isMaximized={this.state.isMaximized}
     theme='dark'
     background='#1b9df8'
     onCloseClick={this.close}
     onMinimizeClick={this.minimize}
     onMaximizeClick={this.toggleMaximize}
     onRestoreDownClick={this.toggleMaximize}/>

but the 'title' props must be string.

gabrielbull commented 7 years ago

Please submit a PR and we will accept it.