From d98e240ab195e9601ce86971fe9f132810dadf25 Mon Sep 17 00:00:00 2001 From: Jon Koops Date: Thu, 12 Jan 2023 17:51:12 +0100 Subject: [PATCH] Remove unused `SearchUser` component (#4189) --- apps/admin-ui/src/user/SearchUser.tsx | 59 --------------------------- 1 file changed, 59 deletions(-) delete mode 100644 apps/admin-ui/src/user/SearchUser.tsx diff --git a/apps/admin-ui/src/user/SearchUser.tsx b/apps/admin-ui/src/user/SearchUser.tsx deleted file mode 100644 index 201f35bd9d..0000000000 --- a/apps/admin-ui/src/user/SearchUser.tsx +++ /dev/null @@ -1,59 +0,0 @@ -import { useTranslation } from "react-i18next"; -import { - Button, - ButtonVariant, - EmptyState, - EmptyStateBody, - Form, - InputGroup, - Title, -} from "@patternfly/react-core"; -import { SearchIcon } from "@patternfly/react-icons"; -import { useForm } from "react-hook-form"; -import { useRouteMatch } from "react-router-dom"; -import { useNavigate } from "react-router-dom-v5-compat"; - -import { KeycloakTextInput } from "../components/keycloak-text-input/KeycloakTextInput"; - -type SearchUserProps = { - onSearch: (search: string) => void; -}; - -export const SearchUser = ({ onSearch }: SearchUserProps) => { - const { t } = useTranslation("users"); - const { register, handleSubmit } = useForm<{ search: string }>(); - const { url } = useRouteMatch(); - const navigate = useNavigate(); - - const goToCreate = () => navigate(`${url}/add-user`); - - return ( - - - {t("startBySearchingAUser")} - - -
onSearch(form.search))}> - - - - -
-
- -
- ); -};