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

windows TitleBar component expects `object` type not `string` type as title. #100

Closed async3619 closed 6 years ago

async3619 commented 7 years ago

windows TitleBar component expects object type not string type as title even if the doc page says title prop type is string.

the code is:

<Window
    chrome
    color={themeColor}
    theme={theme}
    padding="12px"
>
    <TitleBar title={"Hello World"} controls />
</Window>

then console prints:

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

https://github.com/gabrielbull/react-desktop/blob/master/src/titleBar/windows/titleBar.js#L21 check this out please :)