keycloak-scim/src/realm-settings/user-profile/attribute/AttributeAnnotations.tsx

30 lines
851 B
TypeScript
Raw Normal View History

import React from "react";
import { useTranslation } from "react-i18next";
import { FormGroup, Grid, GridItem } from "@patternfly/react-core";
import { FormAccess } from "../../../components/form-access/FormAccess";
import { KeyValueInput } from "../../../components/key-value-form/KeyValueInput";
2022-03-16 11:11:51 +00:00
import "../../realm-settings-section.css";
2022-03-16 11:11:51 +00:00
export const AttributeAnnotations = () => {
const { t } = useTranslation("realm-settings");
return (
<FormAccess role="manage-realm" isHorizontal>
<FormGroup
hasNoPaddingTop
label={t("annotations")}
fieldId="kc-annotations"
className="kc-annotations-label"
>
<Grid className="kc-annotations">
<GridItem>
<KeyValueInput name="annotations" />
</GridItem>
</Grid>
</FormGroup>
</FormAccess>
);
};