Skip to content

v1.2.16

Choose a tag to compare

@github-actions github-actions released this 23 Jun 11:16
· 288 commits to master since this release
5e7c832

Changes

⚠ IMPORTANT! ⚠

  • Renamed and refactored PrivateRoute to CustomRoute
  • Allows the route to be more configurable

It is HIGHLY recommended to use <CustomRoute /> component when defining a new route. This is an enhanced version of the basic react-router-dom's <Route /> component. In addition, it allows a more deeper customization of a route and by default it comes with the following configuration parameters:

  • isPrivate: if set to True, allows only the logged in users to access the route.
  • roles: a list of predefined roles. For more details see Authorization;
  • rights: a list of predefined rights. For more details see Authorization;
  • fullWidth: if set to True, it removes the margins and paddings of the main content of the application screen