department-of-veterans-affairs/vets-website

View on GitHub
src/applications/check-in/containers/withAuthorization.jsx

Summary

Maintainability
A
2 hrs
Test Coverage

Function withAuthorization has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const withAuthorization = (Component, options) => {
  const WrappedComponent = props => {
    const { appName } = options;
    const { router } = props;
    const selectCurrentContext = useMemo(makeSelectCurrentContext, []);
Severity: Minor
Found in src/applications/check-in/containers/withAuthorization.jsx - About 1 hr to fix

    Function WrappedComponent has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      const WrappedComponent = props => {
        const { appName } = options;
        const { router } = props;
        const selectCurrentContext = useMemo(makeSelectCurrentContext, []);
        const { token, permissions } = useSelector(selectCurrentContext);
    Severity: Minor
    Found in src/applications/check-in/containers/withAuthorization.jsx - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status