- );
-}
\ No newline at end of file
+ setIsLoading(false);
+ };
+
+ return (
+
+ );
+};
diff --git a/frontend/src/views/Settings/PersonalSettingsPage/AuthMethodSection/AuthMethodSection.tsx b/frontend/src/views/Settings/PersonalSettingsPage/AuthMethodSection/AuthMethodSection.tsx
index 42917aae6..73d266e2e 100644
--- a/frontend/src/views/Settings/PersonalSettingsPage/AuthMethodSection/AuthMethodSection.tsx
+++ b/frontend/src/views/Settings/PersonalSettingsPage/AuthMethodSection/AuthMethodSection.tsx
@@ -1,6 +1,6 @@
import { useEffect } from "react";
import { useForm } from "react-hook-form";
-import { faGithub, faGoogle, IconDefinition } from "@fortawesome/free-brands-svg-icons";
+import { faGithub, faGitlab, faGoogle, IconDefinition } from "@fortawesome/free-brands-svg-icons";
import { faEnvelope } from "@fortawesome/free-regular-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { yupResolver } from "@hookform/resolvers/yup";
@@ -10,129 +10,127 @@ import { useNotificationContext } from "@app/components/context/Notifications/No
import { Switch } from "@app/components/v2";
import { useUser } from "@app/context";
import { useUpdateUserAuthMethods } from "@app/hooks/api";
-import {
- AuthMethod
-} from "@app/hooks/api/users/types";
+import { AuthMethod } from "@app/hooks/api/users/types";
interface AuthMethodOption {
- label: string,
- value: AuthMethod,
- icon: IconDefinition;
+ label: string;
+ value: AuthMethod;
+ icon: IconDefinition;
}
const authMethodOpts: AuthMethodOption[] = [
- { label: "Email", value: AuthMethod.EMAIL, icon: faEnvelope },
- { label: "Google", value: AuthMethod.GOOGLE, icon: faGoogle },
- { label: "GitHub", value: AuthMethod.GITHUB, icon: faGithub }
+ { label: "Email", value: AuthMethod.EMAIL, icon: faEnvelope },
+ { label: "Google", value: AuthMethod.GOOGLE, icon: faGoogle },
+ { label: "GitHub", value: AuthMethod.GITHUB, icon: faGithub },
+ { label: "GitLab", value: AuthMethod.GITLAB, icon: faGitlab }
];
const samlProviders = [AuthMethod.OKTA_SAML, AuthMethod.JUMPCLOUD_SAML, AuthMethod.AZURE_SAML];
const schema = yup.object({
- authMethods: yup.array().required("Auth method is required")
+ authMethods: yup.array().required("Auth method is required")
});
export type FormData = yup.InferType