juliancwirko / react-s-alert

Alerts / Notifications for React with rich configuration options
https://www.npmjs.com/package/react-s-alert
MIT License
649 stars 75 forks source link

sAlert doesn't take css #71

Closed AndrewMerke closed 6 years ago

AndrewMerke commented 6 years ago

Hello, I am trying to add alerts all over my React-Redux project. I am initializing it in header component, like this:

<Alert position='top' stack={{limit: 3}} html={true} />

And later try to use it in Redux-Saga while catch an error, like this:

catch (error) { console.log(error.response.payload.error); Alert.error('Error message...', { html: false }); }

Result is not a pop up, but on the top it shows just text Error message... and push html content down. Maybe you could tell me what I am doing wrong.

I have imported all css files in header component.

juliancwirko commented 6 years ago

Hi, it looks like a problem with css, could you prepare some small reproduction repo for that?

AndrewMerke commented 6 years ago

I found a problem. It is not with your css. It was problem with react-boilerplate webpack configuration. Somehow I can import css files from node_modules. Maybe you tried react-boilerplate? Thank you for you fast response.

juliancwirko commented 6 years ago

these are small files, you can always copy them to your project

AndrewMerke commented 6 years ago

Yes, I did it and everything looks working.