React - Little bit confused about new INotificationCenterStyles we can pass in
Hey I saw its now discouraged to pass in a theme to the
<PopoverNotificationCenter />
and we should pass in a style object to the <NovuProvider />
.
Previously if I wanted to change the brand colour in front of unread notifications I could pass in a theme to the PopoverNotificationCenter
like this
How would I do this using the new using the INotificationCenterStyles
interface?
I had a quick play around but didn't get very far. Here's what I'm passing into the <NovuProvider>
I can see the header part working but I missing something for the notification part. Thanks in advance3 Replies
I think
notificationItemBeforeBrandColor
is available in theme not in style@turtles hey, the
INotificationCenterStyles
allows you to write just the CSS in JS, but it defines the object structure that you need to pass to apply the styles for a particular part of the notification center component.
So if you would like to update the :before
pseudo item you should be able to do it like this:
Makes sense. Thanks guys