schiehll / react-alert

alerts for React
MIT License
608 stars 98 forks source link

Only three types? #136

Closed webeli closed 5 years ago

webeli commented 5 years ago

In my project i need four different types (info, success, warning, error).

Is there a simple way to add a custom type? Or can i change the types property?

schiehll commented 5 years ago

Hey @webeli,

You can follow this example to achieve that.

webeli commented 5 years ago

I feel that's a pretty dirty way of adding another type :/ can't we have 4 as a standard? @schiehll would love to just call alert.warning("text"); like the other ones.