diff --git a/astroplant-frontend/src/scenes/kit/access/components/Members.tsx b/astroplant-frontend/src/scenes/kit/access/components/Members.tsx index 67ebb4f..0846c2c 100644 --- a/astroplant-frontend/src/scenes/kit/access/components/Members.tsx +++ b/astroplant-frontend/src/scenes/kit/access/components/Members.tsx @@ -8,10 +8,11 @@ import { DropdownDetails } from "~/Components/DropdownDetails"; import style from "./Members.module.css"; import clsx from "clsx"; -import { IconCheck } from "@tabler/icons-react"; +import { IconCheck, IconPlus, IconX } from "@tabler/icons-react"; import { ChangeEvent, useEffect, useMemo, useRef, useState } from "react"; import { ModalDialog } from "~/Components/ModalDialog"; import { Input } from "~/Components/Input"; +import { useDebounce } from "~/hooks"; export type Props = { kit: schemas["Kit"]; @@ -22,6 +23,8 @@ export default function Members({ kit }: Props) { const [deleteKitMembership, { error: deleteKitMembershipError }] = rtkApi.useDeleteKitMembershipMutation(); + const [addingMember, setAddingMember] = useState(false); + useEffect(() => { if (deleteKitMembershipError !== undefined) { // TODO: use something other than an `alert` @@ -42,6 +45,16 @@ export default function Members({ kit }: Props) { return ( <> + + setAddingMember(false)}> + setAddingMember(false)} /> +