-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Good morning, I'm trying to use the API, but when calling the Toaster with:
toaster.notify(description, {duration: 5000, position: 'bottom-left'});, I get the following:

Then I have tried to use :
const CustomNotification = ({ title }) => { const theme = useTheme(); return <div style={{ color: theme.primary }}>{title}</div>; }; const CustomNotificationWithTheme = withTheme(CustomNotification); toaster.notify(() => <CustomNotificationWithTheme title="I am pretty" />);
But I get errors about useTheme() and withTheme()
Is there something I'm missing?
Thanks for your time
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels