Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Fix lint issues

Tuan Dangc0f3aecad3a6
diff --git a/frontend/src/views/Settings/PersonalSettingsPage/AuthMethodSection/AuthMethodSection.tsx b/frontend/src/views/Settings/PersonalSettingsPage/AuthMethodSection/AuthMethodSection.tsx
index 0f36473509..42917aae68 100644
--- a/frontend/src/views/Settings/PersonalSettingsPage/AuthMethodSection/AuthMethodSection.tsx
+++ b/frontend/src/views/Settings/PersonalSettingsPage/AuthMethodSection/AuthMethodSection.tsx
@@ -119,15 +119,16 @@ export const AuthMethodSection = () => {
{user && authMethodOpts.map((authMethodOpt) => {
return (
<div className="flex p-4 items-center" key={`auth-method-${authMethodOpt.value}`}>
- <div className="flex items-center w-20 mr-4">
+ <div className="flex items-center">
<FontAwesomeIcon icon={authMethodOpt.icon} className="mr-4" />
- <p>{authMethodOpt.label}</p>
</div>
<Switch
id={`enable-${authMethodOpt.value}-auth`}
onCheckedChange={(value) => onAuthMethodToggle(value, authMethodOpt)}
isChecked={authMethods?.includes(authMethodOpt.value) ?? false}
- />
+ >
+ <p className="w-12 mr-4">{authMethodOpt.label}</p>
+ </Switch>
</div>
);
})}