Plsr / 25knots

A design helper for the busy student
https://www.25knots.de
1 stars 1 forks source link

Redirect to root if no scopes present #37

Closed Plsr closed 6 years ago

Plsr commented 6 years ago

Fixes #26

Adds a higher order component (EnsureScopesPresent) that is implemented by all root component except the setup. The HoC checks if scopes are present in the store. If not, it redirects to the root path.

All containers have been adapted to provide a prop that gives information about the presence of scopes in the store.