Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogasp committed Nov 19, 2024
1 parent f6bbdc2 commit 357695a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export default function AssignOwnerModal(props: Readonly<AssignOwnerModal>) {
<ModalBody>
<Combobox
onSelected={addOwner}
hidden={!!selectedUser}
searchCallback={searchUser}
/>
<div hidden={!selectedUser}>
Expand Down
3 changes: 1 addition & 2 deletions src/components/Combobox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ import { Group } from "@/models/groups";
type Searchable = User | Group;

type ComboboxProps<T extends Searchable> = {
hidden?: boolean;
searchCallback: (query: string) => Promise<T[]>;
onSelected: (item: T) => void;
};

export default function Combobox<T extends Searchable>(
props: Readonly<ComboboxProps<T>>
) {
const { hidden, onSelected, searchCallback } = props;
const { onSelected, searchCallback } = props;
const [items, setItems] = useState<T[]>([]);
const itemNotFound = {
id: "-1",
Expand Down

0 comments on commit 357695a

Please sign in to comment.