Banda-Media/lunchMemo

View on GitHub

Showing 3 of 5 total issues

Function Login has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const Login: React.FC = () => {
  const { login, loginProvider } = useAuth();
  const form = useForm(formDefaults);
  const { notify } = useNotify();
  const router = useRouter();
Severity: Minor
Found in app/components/modules/registration/Login.tsx - About 1 hr to fix

    Function CreateGroup has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const CreateGroup: React.FC = () => {
      const form = useForm(formDefaults);
      const { addGroup } = useLunchGroup();
      const { notify } = useNotify();
      const { user } = useAuth();
    Severity: Minor
    Found in app/components/modules/dashboard/components/CreateGroup.tsx - About 1 hr to fix

      Function RegistrationPanel has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      const RegistrationPanel: React.FC = () => {
        const [route, setRoute] = useState('');
        useEffect(() => {
          const pathName = window && window.location.pathname;
          setRoute(pathName);
      Severity: Minor
      Found in app/components/modules/registration/RegistrationPanel.tsx - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language