scientist-softserv / webstore-component-library

A React component library intended for use with WebStore applications.
https://www.npmjs.com/package/@scientist-softserv/webstore-component-library
2 stars 0 forks source link

136 refactor error #137

Closed alishaevn closed 1 year ago

alishaevn commented 1 year ago

story

~since I renamed the file, it appears as an entirely new file. In order to see the actual changes (which there are still plenty of), look at this commit. The second commit was simply updating all instances of Error to Notice~

We needed to use alerts for reasons other than errors so a refactor on the Error component was done so it was more flexible.

Expected behavior

Demo

Default ![image](https://user-images.githubusercontent.com/29032869/214977210-411bab50-b26c-4fd2-b7d2-bbd1551935fd.png)
Error ![image](https://user-images.githubusercontent.com/29032869/214977306-5f5a41bb-3ad4-46f8-99bd-cac82bb49ce7.png)
Unauthenticated user ![image](https://user-images.githubusercontent.com/29032869/214977339-ab84954b-34e1-4c46-84e1-8f81bdb2126f.png)