chore: peek overview improvement and bug fixes (#2627)

* chore: peekoverview issue properties text size fix

* chore: peekoverview icon updated and active view indicator added

* chore: peekoverview and issue sidebar improvement
This commit is contained in:
Anmol Singh Bhatia 2023-11-03 18:01:34 +05:30 committed by GitHub
parent f639e467f8
commit 7eeac188d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 172 additions and 243 deletions

View file

@ -19,11 +19,12 @@ type Props = {
value: string[];
onChange: (value: string[]) => void;
projectId: string;
label?: JSX.Element;
};
const issueLabelService = new IssueLabelService();
export const IssueLabelSelect: React.FC<Props> = ({ setIsOpen, value, onChange, projectId }) => {
export const IssueLabelSelect: React.FC<Props> = ({ setIsOpen, value, onChange, projectId, label }) => {
// states
const [query, setQuery] = useState("");
@ -56,7 +57,9 @@ export const IssueLabelSelect: React.FC<Props> = ({ setIsOpen, value, onChange,
ref={setReferenceElement}
className="flex items-center gap-2 cursor-pointer text-xs text-custom-text-200"
>
{value && value.length > 0 ? (
{label ? (
label
) : value && value.length > 0 ? (
<span className="flex items-center justify-center gap-2 text-xs">
<IssueLabelsList
labels={value.map((v) => issueLabels?.find((l) => l.id === v)) ?? []}