EmptyState prop on PopoverNoificationCenter
If I pass a function to the notification center like
It will pass type checking but wont render on screen. The console also shows this error
If I pass it
It will render but fail the type check. Should the interface be
emptyState?: JSX.Element;
instead of emptyState?: () => JSX.Element;
? Or am I doing something wrong (header and footer prop have the same signature)4 Replies
I tried to reproduce this.
This is a strange behaviour. same thing is working with footer and header but not with empty state
@Engineering
Yeas I think it should be <LookingGlassIcon/> and the type is wrong I suggest we change how we render it to be
() => JSX.Element
to be consistent with the other ones we haveYes, saw that as well
!issu
!issue