diff --git a/apps/app/components/issues/select/label.tsx b/apps/app/components/issues/select/label.tsx index a1300b712..d762b2bc0 100644 --- a/apps/app/components/issues/select/label.tsx +++ b/apps/app/components/issues/select/label.tsx @@ -20,7 +20,7 @@ import issuesServices from "services/issues.service"; import type { IIssueLabels } from "types"; // fetch-keys import { PROJECT_ISSUE_LABELS } from "constants/fetch-keys"; -import { IssueLabelList } from "components/ui"; +import { IssueLabelsList } from "components/ui"; type Props = { setIsOpen: React.Dispatch>; @@ -71,7 +71,7 @@ export const IssueLabelSelect: React.FC = ({ setIsOpen, value, onChange, > {value && value.length > 0 ? ( - issueLabels?.find((l) => l.id === v)?.color) ?? []} length={3} showLength diff --git a/apps/app/components/ui/index.ts b/apps/app/components/ui/index.ts index 3c35734eb..ca610a71c 100644 --- a/apps/app/components/ui/index.ts +++ b/apps/app/components/ui/index.ts @@ -15,4 +15,4 @@ export * from "./progress-bar"; export * from "./select"; export * from "./spinner"; export * from "./tooltip"; -export * from "./label-list"; +export * from "./labels-list"; diff --git a/apps/app/components/ui/label-list.tsx b/apps/app/components/ui/labels-list.tsx similarity index 87% rename from apps/app/components/ui/label-list.tsx rename to apps/app/components/ui/labels-list.tsx index 3c5459e14..26257549b 100644 --- a/apps/app/components/ui/label-list.tsx +++ b/apps/app/components/ui/labels-list.tsx @@ -1,12 +1,12 @@ import React from "react"; -type IssueLabelListProps = { +type IssueLabelsListProps = { labels?: (string | undefined)[]; length?: number; showLength?: boolean; }; -export const IssueLabelList: React.FC = ({ +export const IssueLabelsList: React.FC = ({ labels, length = 5, showLength = true,