Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
chore(components/RoutingWrapper): add more comments
Browse files Browse the repository at this point in the history
chore(components/RoutingWrapper): add more comments
  • Loading branch information
Metnew committed Oct 18, 2017
1 parent c824599 commit e5a37bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common/components/addons/RoutingWrapper/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export default class RoutingWrapper extends Component {
* Checks Auth logic. Is user allowed to visit certain path?
* @param {String} path next path to visit
* @return {Bool} is user allowed to visit next location?
* check RouteAuth component.
* @desc Think about this method as static.
* Maybe, It'd be even better to store this logic in a plain function rather than in a method.
* {@link - src/common/components/addons/RouteAuth/index.jsx}
*/
authCheck (path: string): boolean {
const {store} = this.props
Expand Down

0 comments on commit e5a37bf

Please sign in to comment.