Explorar el Código

Update AuthorizedRoute.tsx (#6563)

typo AuthorizedRoutePops -> AuthorizedRouteProps
Chanh Ly hace 5 años
padre
commit
68384c1350
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/components/Authorized/AuthorizedRoute.tsx

+ 2 - 2
src/components/Authorized/AuthorizedRoute.tsx

@@ -4,7 +4,7 @@ import React from 'react';
 import Authorized from './Authorized';
 import { IAuthorityType } from './CheckPermissions';
 
-interface AuthorizedRoutePops {
+interface AuthorizedRouteProps {
   currentAuthority: string;
   component: React.ComponentClass<any, any>;
   render: (props: any) => React.ReactNode;
@@ -12,7 +12,7 @@ interface AuthorizedRoutePops {
   authority: IAuthorityType;
 }
 
-const AuthorizedRoute: React.SFC<AuthorizedRoutePops> = ({
+const AuthorizedRoute: React.SFC<AuthorizedRouteProps> = ({
   component: Component,
   render,
   authority,