Update keycloakify

This commit is contained in:
garronej
2023-06-20 15:01:13 +02:00
parent c339625b02
commit 746d3f4064
3 changed files with 10 additions and 8 deletions

View File

@ -17,7 +17,7 @@ export type UserProfileFormFieldsProps = {
export function UserProfileFormFields(props: UserProfileFormFieldsProps) {
const { kcContext, onIsFormSubmittableValueChange, i18n, getClassName, BeforeField, AfterField } = props;
const { advancedMsg } = i18n;
const { advancedMsg, msg } = i18n;
const {
formValidationState: { fieldStateByAttributeName, isFormSubmittable },
@ -99,7 +99,9 @@ export function UserProfileFormFields(props: UserProfileFormFieldsProps) {
value={value}
>
<>
<option value="" selected disabled hidden>Select an option</option>
<option value="" selected disabled hidden>
{msg("selectAnOption")}
</option>
{options.options.map(option => (
<option key={option} value={option}>
{option}
@ -172,4 +174,4 @@ export function UserProfileFormFields(props: UserProfileFormFieldsProps) {
})}
</>
);
}
}