fix: bug fixes in cycles

This commit is contained in:
Aaryan Khandelwal 2022-12-15 09:47:56 +05:30
parent 1c30e53ef9
commit 0cda15408d
23 changed files with 2550 additions and 2052 deletions

View file

@ -19,6 +19,7 @@ type Props = {
issues: IIssue[];
title?: string;
multiple?: boolean;
customDisplay?: JSX.Element;
};
const IssuesListModal: React.FC<Props> = ({
@ -29,6 +30,7 @@ const IssuesListModal: React.FC<Props> = ({
issues,
title = "Issues",
multiple = false,
customDisplay,
}) => {
const [query, setQuery] = useState("");
const [values, setValues] = useState<string[]>([]);
@ -90,9 +92,10 @@ const IssuesListModal: React.FC<Props> = ({
className="h-12 w-full border-0 bg-transparent pl-11 pr-4 text-gray-900 placeholder-gray-500 focus:ring-0 sm:text-sm outline-none"
placeholder="Search..."
onChange={(e) => setQuery(e.target.value)}
displayValue={() => ""}
/>
</div>
<div className="p-3">{customDisplay}</div>
<Combobox.Options
static
className="max-h-80 scroll-py-2 divide-y divide-gray-500 divide-opacity-10 overflow-y-auto"