aboutsummaryrefslogtreecommitdiff
path: root/src/core/permission.router.js
blob: d698917dc0cea0761a6301ed77642227823cb8a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import React from "react";
import { Route, Redirect } from "react-router-dom";

export const Permissions = ({Component: Component, ..._props})=>{
    
    return (
        <Route
          render={props => {
            let returnProps = {..._props, ...props};
            // let token = Storage.get("token");
            let pathName = props.match.path;
            console.log(returnProps);
            return <Component {...returnProps} />;
          }}
        />
      );
}

export default Permissions;