Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't load styles to the Toasts #34

Open
zigelboim-misha opened this issue May 26, 2020 · 1 comment
Open

Can't load styles to the Toasts #34

zigelboim-misha opened this issue May 26, 2020 · 1 comment

Comments

@zigelboim-misha
Copy link

zigelboim-misha commented May 26, 2020

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

@Pankwood
Copy link

The same here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants