Custom Notification Items and Conditional Rendering
I was working on in-app notification and I have two types of notifications one in which no action is to be performed and in other I want to create a custom item with two buttons like "Accept" and "Cancel" and perform actions accordingly.
How can I achieve this? I explored the doc but unable to find a way
14 Replies
@DevRel
@BeardyWeird
In-app editor, we have CTA actions button, that can be added.
So you can create two workflows one with in-app step without action buttons and other with action buttons
Ohk thanks for helping
@BeardyWeird let me know if you face any issue
Checkout this doc to learn how to handle action click from client side
https://docs.novu.co/notification-center/client/react/get-started#onactionclick
Novu
React Get Started - Novu
Learn how to add novu powered In-App notification center to your React app
Great thanks π
Hi @Pawan Jain
I'm getting multiple warnings like this
I tried reinstalling the package why's that?
Hi @Support any update on this?
@BeardyWeird
What is
@novu/notification-center
package version?"@novu/notification-center": "^0.24.0",
@BeardyWeird Are these warnings preventng you from using our notification center ?
No but they are being flagged out again and again
I just wanted to know if I'm missing anything as this is affecting the developer experience
I use a concurrent terminal so I'm unable to see my console outputs in the terminal due to these warnings
I agree these warnings are annoying
We have open issue for this
https://github.com/novuhq/novu/issues/3400
I will prioritize this issue with team π
Great thanks