Showing 3 of 5 total issues
Function Login
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Login: React.FC = () => {
const { login, loginProvider } = useAuth();
const form = useForm(formDefaults);
const { notify } = useNotify();
const router = useRouter();
Function CreateGroup
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const CreateGroup: React.FC = () => {
const form = useForm(formDefaults);
const { addGroup } = useLunchGroup();
const { notify } = useNotify();
const { user } = useAuth();
Function RegistrationPanel
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const RegistrationPanel: React.FC = () => {
const [route, setRoute] = useState('');
useEffect(() => {
const pathName = window && window.location.pathname;
setRoute(pathName);