Fix build (#2276)
This commit is contained in:
parent
8fa978aeb0
commit
e672849935
1 changed files with 4 additions and 18 deletions
|
@ -2,22 +2,12 @@ import React from "react";
|
|||
import { FormGroup, Grid, GridItem } from "@patternfly/react-core";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { FormAccess } from "../../../components/form-access/FormAccess";
|
||||
import "../../realm-settings-section.css";
|
||||
import { FormProvider, useFormContext } from "react-hook-form";
|
||||
import {
|
||||
AttributeInput,
|
||||
AttributeType,
|
||||
} from "../../../components/attribute-input/AttributeInput";
|
||||
import { AttributeInput } from "../../../components/attribute-input/AttributeInput";
|
||||
|
||||
export type AttributeAnnotationsProps = {
|
||||
isKeySelectable?: boolean;
|
||||
selectableValues?: AttributeType[];
|
||||
};
|
||||
import "../../realm-settings-section.css";
|
||||
|
||||
export const AttributeAnnotations = ({
|
||||
isKeySelectable,
|
||||
selectableValues,
|
||||
}: AttributeAnnotationsProps) => {
|
||||
export const AttributeAnnotations = () => {
|
||||
const { t } = useTranslation("realm-settings");
|
||||
const form = useFormContext();
|
||||
|
||||
|
@ -32,11 +22,7 @@ export const AttributeAnnotations = ({
|
|||
<Grid className="kc-annotations">
|
||||
<GridItem>
|
||||
<FormProvider {...form}>
|
||||
<AttributeInput
|
||||
isKeySelectable={isKeySelectable}
|
||||
selectableValues={selectableValues}
|
||||
name="annotations"
|
||||
/>
|
||||
<AttributeInput name="annotations" />
|
||||
</FormProvider>
|
||||
</GridItem>
|
||||
</Grid>
|
||||
|
|
Loading…
Reference in a new issue