Skip to content

Can't load styles to the Toasts #34

@zigelboim-misha

Description

@zigelboim-misha

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:
image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions