diff --git a/src/components/Authorization/Authorization.tsx b/src/components/Authorization/Authorization.tsx index 99762a2035ac8fa1958e650628e8280271db8e8f..5cf6d15cea3ac4ccf0c314e8c69a3db13bed78d4 100644 --- a/src/components/Authorization/Authorization.tsx +++ b/src/components/Authorization/Authorization.tsx @@ -5,11 +5,17 @@ interface WithAuthProps { allowedRoles: string[]; } -export interface Props extends WithAuthProps { +interface Props extends WithAuthProps { children: React.ReactNode; } /* eslint-disable react/jsx-props-no-spreading */ +/** + * + * @param WrappedComponent component to be wrapped by the authentication control. + * This creates a "personal area" in the working implementation. + * @returns {FC<T>} wrapped component. + */ export const withAuthorization = <T extends WithAuthProps = WithAuthProps>( WrappedComponent: React.ComponentType<T>, ): FC<T> => {