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

specify default `configObject` for all alerts #48

Closed satyanash closed 7 years ago

satyanash commented 7 years ago

There needs to be a way to set default values for the alert configObject so every call to Alert.success(), Alert.info(),Alert.warning(),Alert.error() need not pass in the same object. If a configObject is passed, it should override the default values set.

satyanash commented 7 years ago

Never mind. It is doable.

juliancwirko commented 7 years ago

I am not sure if I understand you, but it works like that. You can provide global settings on main component.