Closed bobsany16 closed 3 years ago
I believe we need pass default component. Without it there will be no content in scroll. @Patys what do you think?
Will work on it! Been a bit busy
@bobsany16 So users should be able to update and it won't require any additional work for them to use new version, also if they use renderBody they should get yellow box warning about deprecation and moving to children
@Patys was able to do what you asked, except for marking it deprecated. When researching, the ideal scenario is that we would declare the renderBody
prop as deprecated but since this would likely console.warn(), this would fail tests. Any ideas ?
When this feature will be avaiable ?
AvatarHeader
,DetailsHeader
, andTabbedHeader
(this one wasn't mention in the issue #149 but I thought it'd make sense that all 3 predefined components should be consistent)index.d.ts
Note
renderBody
had a defaultProp of<RenderContent user={} />
or<RenderContent title="" />