Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useEffect } from "react";
import { Formik } from "formik";
import GeneralPage from "./GeneralPage";
import BumperPage from "./BumperPage";
Expand Down Expand Up @@ -83,12 +82,6 @@ const NewThemeWizard = ({
>
{/* Render wizard pages depending on current value of page variable */}
{formik => {
// eslint-disable-next-line react-hooks/rules-of-hooks
useEffect(() => {
formik.validateForm();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [page]);

return (
<>
{/* Stepper that shows each step of wizard as header */}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,6 @@ const EditScheduledEventsModal = ({
>
{/* Render wizard pages depending on current value of page variable */}
{formik => {
// eslint-disable-next-line react-hooks/rules-of-hooks
useEffect(() => {
formik.validateForm().then();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [page]);

return (
<>
{/* Stepper that shows each step of wizard as header */}
Expand Down
7 changes: 0 additions & 7 deletions src/components/events/partials/modals/StartTaskModal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useEffect } from "react";
import { Formik } from "formik";
import { initialFormValuesStartTask } from "../../../../configs/modalConfig";
import WizardStepper, { WizardStep } from "../../../shared/wizard/WizardStepper";
Expand Down Expand Up @@ -92,12 +91,6 @@ const StartTaskModal = ({
>
{/* Render wizard pages depending on current value of page variable */}
{formik => {
// eslint-disable-next-line react-hooks/rules-of-hooks
useEffect(() => {
formik.validateForm().then();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [page]);

return (
<>
{/* Stepper that shows each step of wizard as header */}
Expand Down
6 changes: 0 additions & 6 deletions src/components/events/partials/wizards/NewEventWizard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,6 @@ const NewEventWizard = ({
>
{/* Render wizard pages depending on current value of page variable */}
{formik => {
// eslint-disable-next-line react-hooks/rules-of-hooks
useEffect(() => {
formik.validateForm();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [page]);

return (
<>
{/* Stepper that shows each step of wizard as header */}
Expand Down
6 changes: 0 additions & 6 deletions src/components/events/partials/wizards/NewSeriesWizard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,6 @@ const NewSeriesWizard = ({
>
{/* Render wizard pages depending on current value of page variable */}
{formik => {
// eslint-disable-next-line react-hooks/rules-of-hooks
useEffect(() => {
formik.validateForm().then();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [page]);

return (
<>
{/* Stepper that shows each step of wizard as header */}
Expand Down
7 changes: 0 additions & 7 deletions src/components/users/partials/wizard/NewAclWizard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useEffect } from "react";
import { Formik } from "formik";
import WizardStepper, { WizardStep } from "../../../shared/wizard/WizardStepper";
import AclMetadataPage from "./AclMetadataPage";
Expand Down Expand Up @@ -72,12 +71,6 @@ const NewAclWizard = ({
>
{/* Render wizard pages depending on current value of page variable */}
{formik => {
// eslint-disable-next-line react-hooks/rules-of-hooks
useEffect(() => {
formik.validateForm();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [page]);

return (
<>
{/* Stepper that shows each step of wizard as header */}
Expand Down
8 changes: 1 addition & 7 deletions src/components/users/partials/wizard/NewGroupWizard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect } from "react";
import React from "react";
import { Formik } from "formik";
import { initialFormValuesNewGroup } from "../../../../configs/modalConfig";
import WizardStepper, { WizardStep } from "../../../shared/wizard/WizardStepper";
Expand Down Expand Up @@ -75,12 +75,6 @@ const NewGroupWizard: React.FC<{
>
{/* Render wizard pages depending on current value of page variable */}
{formik => {
// eslint-disable-next-line react-hooks/rules-of-hooks
useEffect(() => {
formik.validateForm();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [page]);

return (
<>
{/* Stepper that shows each step of wizard as header */}
Expand Down
8 changes: 1 addition & 7 deletions src/components/users/partials/wizard/NewUserWizard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useEffect, useState } from "react";
import { useState } from "react";
import { Formik } from "formik";
import { useTranslation } from "react-i18next";
import cn from "classnames";
Expand Down Expand Up @@ -79,12 +79,6 @@ const NewUserWizard = ({
>
{/* Render wizard tabs depending on current value of tab variable */}
{formik => {
// eslint-disable-next-line react-hooks/rules-of-hooks
useEffect(() => {
formik.validateForm();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [tab]);

return (
<>
{tab === 0 && <NewUserGeneralTab formik={formik} />}
Expand Down