-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WEB-2580] chore: improvements for custom search select.
- Loading branch information
1 parent
ee0dce4
commit 549247d
Showing
4 changed files
with
40 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 17 additions & 5 deletions
22
web/ce/components/issues/issue-modal/issue-type-select.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,24 @@ | ||
import { Control } from "react-hook-form"; | ||
// types | ||
import { TIssue } from "@plane/types"; | ||
import { TBulkIssueProperties, TIssue } from "@plane/types"; | ||
|
||
type TIssueTypeSelectProps = { | ||
control: Control<TIssue>; | ||
export type TIssueFields = TIssue & TBulkIssueProperties; | ||
|
||
export type TIssueTypeDropdownVariant = "xs" | "sm"; | ||
|
||
export type TIssueTypeSelectProps<T extends Partial<TIssueFields>> = { | ||
control: Control<T>; | ||
projectId: string | null; | ||
disabled?: boolean; | ||
handleFormChange: () => void; | ||
variant?: TIssueTypeDropdownVariant; | ||
placeholder?: string; | ||
isRequired?: boolean; | ||
renderChevron?: boolean; | ||
dropDownContainerClassName?: string; | ||
disableMandatoryTypes?: boolean; // Disable issue types with mandatory properties | ||
reasonForDisabledType?: string; // Reason for disabling issue types | ||
handleFormChange?: () => void; | ||
}; | ||
|
||
export const IssueTypeSelect: React.FC<TIssueTypeSelectProps> = () => <></>; | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
export const IssueTypeSelect = <T extends Partial<TIssueFields>>(props: TIssueTypeSelectProps<T>) => <></>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters