2021-03-03 19:12:16 +00:00
|
|
|
import React from "react";
|
|
|
|
import { PageSection } from "@patternfly/react-core";
|
2021-03-03 13:53:42 +00:00
|
|
|
import { useTranslation } from "react-i18next";
|
2021-03-03 19:12:16 +00:00
|
|
|
import { useForm } from "react-hook-form";
|
2021-03-03 13:53:42 +00:00
|
|
|
|
|
|
|
import { ViewHeader } from "../components/view-header/ViewHeader";
|
|
|
|
import UserRepresentation from "keycloak-admin/lib/defs/userRepresentation";
|
|
|
|
import { UserForm } from "./UserForm";
|
|
|
|
|
|
|
|
export const UsersTabs = () => {
|
|
|
|
const { t } = useTranslation("roles");
|
|
|
|
const form = useForm<UserRepresentation>({ mode: "onChange" });
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
2021-03-03 19:12:16 +00:00
|
|
|
<ViewHeader
|
|
|
|
titleKey={t("users:createUser")}
|
|
|
|
subKey=""
|
|
|
|
dividerComponent="div"
|
|
|
|
/>
|
2021-03-03 13:53:42 +00:00
|
|
|
<PageSection variant="light">
|
2021-03-03 19:12:16 +00:00
|
|
|
<UserForm form={form} save={() => {}} />
|
2021-03-03 13:53:42 +00:00
|
|
|
</PageSection>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|