mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 06:26:16 +00:00
Fix lint issues
This commit is contained in:
+4
-3
@@ -119,15 +119,16 @@ export const AuthMethodSection = () => {
|
|||||||
{user && authMethodOpts.map((authMethodOpt) => {
|
{user && authMethodOpts.map((authMethodOpt) => {
|
||||||
return (
|
return (
|
||||||
<div className="flex p-4 items-center" key={`auth-method-${authMethodOpt.value}`}>
|
<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" />
|
<FontAwesomeIcon icon={authMethodOpt.icon} className="mr-4" />
|
||||||
<p>{authMethodOpt.label}</p>
|
|
||||||
</div>
|
</div>
|
||||||
<Switch
|
<Switch
|
||||||
id={`enable-${authMethodOpt.value}-auth`}
|
id={`enable-${authMethodOpt.value}-auth`}
|
||||||
onCheckedChange={(value) => onAuthMethodToggle(value, authMethodOpt)}
|
onCheckedChange={(value) => onAuthMethodToggle(value, authMethodOpt)}
|
||||||
isChecked={authMethods?.includes(authMethodOpt.value) ?? false}
|
isChecked={authMethods?.includes(authMethodOpt.value) ?? false}
|
||||||
/>
|
>
|
||||||
|
<p className="w-12 mr-4">{authMethodOpt.label}</p>
|
||||||
|
</Switch>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|||||||
Reference in New Issue
Block a user