src/applications/check-in/containers/withAuthorization.jsx
Function withAuthorization
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const withAuthorization = (Component, options) => {
const WrappedComponent = props => {
const { appName } = options;
const { router } = props;
const selectCurrentContext = useMemo(makeSelectCurrentContext, []);
Function WrappedComponent
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const WrappedComponent = props => {
const { appName } = options;
const { router } = props;
const selectCurrentContext = useMemo(makeSelectCurrentContext, []);
const { token, permissions } = useSelector(selectCurrentContext);