Update prettier configuration

This commit is contained in:
Joseph Garrone
2024-05-20 19:30:15 +02:00
parent b34f86d2f0
commit ccc5ac6a1f
9 changed files with 27 additions and 26 deletions

View File

@ -101,7 +101,7 @@ export default function Template(props: TemplateProps<KcContext, I18n>) {
({
type: "text/javascript",
src: script
} as const)
}) as const
)
]
});

View File

@ -431,8 +431,8 @@ export function useUserProfileForm(params: ParamsOfUseUserProfileForm): ReturnTy
typeof hasLostFocusAtLeastOnceOrArr === "boolean"
? hasLostFocusAtLeastOnceOrArr
: error.fieldIndex !== undefined
? hasLostFocusAtLeastOnceOrArr[error.fieldIndex]
: hasLostFocusAtLeastOnceOrArr[hasLostFocusAtLeastOnceOrArr.length - 1];
? hasLostFocusAtLeastOnceOrArr[error.fieldIndex]
: hasLostFocusAtLeastOnceOrArr[hasLostFocusAtLeastOnceOrArr.length - 1];
switch (error.source.type) {
case "server":

View File

@ -96,8 +96,8 @@ export default function Login(props: PageProps<Extract<KcContext, { pageId: "log
{!realm.loginWithEmailAllowed
? msg("username")
: !realm.registrationEmailAsUsername
? msg("usernameOrEmail")
: msg("email")}
? msg("usernameOrEmail")
: msg("email")}
</label>
<input
tabIndex={2}

View File

@ -31,8 +31,8 @@ export default function LoginResetPassword(props: PageProps<Extract<KcContext, {
{!realm.loginWithEmailAllowed
? msg("username")
: !realm.registrationEmailAsUsername
? msg("usernameOrEmail")
: msg("email")}
? msg("usernameOrEmail")
: msg("email")}
</label>
</div>
<div className={getClassName("kcInputWrapperClass")}>

View File

@ -93,8 +93,8 @@ export default function LoginUsername(props: PageProps<Extract<KcContext, { page
{!realm.loginWithEmailAllowed
? msg("username")
: !realm.registrationEmailAsUsername
? msg("usernameOrEmail")
: msg("email")}
? msg("usernameOrEmail")
: msg("email")}
</label>
<input
tabIndex={2}