Update prettier configuration
This commit is contained in:
@ -101,7 +101,7 @@ export default function Template(props: TemplateProps<KcContext, I18n>) {
|
||||
({
|
||||
type: "text/javascript",
|
||||
src: script
|
||||
} as const)
|
||||
}) as const
|
||||
)
|
||||
]
|
||||
});
|
||||
|
@ -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":
|
||||
|
@ -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}
|
||||
|
@ -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")}>
|
||||
|
@ -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}
|
||||
|
Reference in New Issue
Block a user