We created an Error component to that takes advantage of the React Bootstrap Alert component. We now have need however to render other alerts as well. Instead of having two different components based on an Alert that do essentially the same thing, we should refactor/rename the Error to account for other use cases.
The current use case is for a user who has not logged in, but is trying to access a route that requires authentication.
Acceptance criteria
[ ] the error use case is maintained
[ ] the component and props are renamed so they don't infer that it is only for errors
Story
We created an
Error
component to that takes advantage of the React BootstrapAlert
component. We now have need however to render other alerts as well. Instead of having two different components based on an Alert that do essentially the same thing, we should refactor/rename theError
to account for other use cases.The current use case is for a user who has not logged in, but is trying to access a route that requires authentication.
Acceptance criteria