Closed async3619 closed 6 years ago
windows TitleBar component expects object type not string type as title even if the doc page says title prop type is string.
object
string
title
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 :)
windows TitleBar component expects
object
type notstring
type as title even if the doc page saystitle
prop type isstring
.the code is:
then console prints:
https://github.com/gabrielbull/react-desktop/blob/master/src/titleBar/windows/titleBar.js#L21 check this out please :)