@@ -17,6 +17,7 @@ import { DateDropdown } from "@/components/dropdowns/date";
1717import { IntakeStateDropdown } from "@/components/dropdowns/intake-state/dropdown" ;
1818import { MemberDropdown } from "@/components/dropdowns/member/dropdown" ;
1919import { PriorityDropdown } from "@/components/dropdowns/priority" ;
20+ import { StateDropdown } from "@/components/dropdowns/state/dropdown" ;
2021import type { TIssueOperations } from "@/components/issues/issue-detail" ;
2122import { IssueLabel } from "@/components/issues/issue-detail/label" ;
2223// hooks
@@ -30,10 +31,12 @@ type Props = {
3031 issueOperations : TIssueOperations ;
3132 isEditable : boolean ;
3233 duplicateIssueDetails : TInboxDuplicateIssueDetails | undefined ;
34+ isIntakeAccepted : boolean ;
3335} ;
3436
3537export const InboxIssueContentProperties = observer ( function InboxIssueContentProperties ( props : Props ) {
36- const { workspaceSlug, projectId, issue, issueOperations, isEditable, duplicateIssueDetails } = props ;
38+ const { workspaceSlug, projectId, issue, issueOperations, isEditable, duplicateIssueDetails, isIntakeAccepted } =
39+ props ;
3740
3841 const router = useAppRouter ( ) ;
3942 // store hooks
@@ -50,6 +53,7 @@ export const InboxIssueContentProperties = observer(function InboxIssueContentPr
5053 projectIdentifier : currentProjectDetails ?. identifier ,
5154 sequenceId : duplicateIssueDetails ?. sequence_id ,
5255 } ) ;
56+ const DropdownComponent = isIntakeAccepted ? StateDropdown : IntakeStateDropdown ;
5357
5458 return (
5559 < div className = "flex w-full flex-col divide-y-2 divide-custom-border-200" >
@@ -64,11 +68,11 @@ export const InboxIssueContentProperties = observer(function InboxIssueContentPr
6468 < span > State</ span >
6569 </ div >
6670 { issue ?. state_id && (
67- < IntakeStateDropdown
71+ < DropdownComponent
6872 value = { issue ?. state_id }
6973 onChange = { ( ) => { } }
7074 projectId = { projectId ?. toString ( ) ?? "" }
71- disabled = { ! isEditable }
75+ disabled
7276 buttonVariant = "transparent-with-text"
7377 className = "w-3/5 flex-grow group"
7478 buttonContainerClassName = "w-full text-left"
0 commit comments