File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ type KanbanColumnProps = {
2222 onDealClick : ( deal : Deal ) => void
2323 calculateColumnValue : ( deals : Deal [ ] ) => number
2424 calculateWeightedValue : ( deals : Deal [ ] , status : CRMStatus | gecoStatus ) => number
25- addNewDeal ?: ( deal : Deal ) => Promise < { success : boolean ; errors ?: Record < string , string > } > ;
26- onAddCustomer ?: ( customer : Partial < Customer > ) => Promise < { success : boolean ; errors ?: Record < string , string > } > ;
25+ // addNewDeal?: (deal: Deal) => Promise<{ success: boolean; errors?: Record<string, string> }>;
26+ // onAddCustomer?: (customer: Partial<Customer>) => Promise<{ success: boolean; errors?: Record<string, string> }>;
2727 compact ?: boolean
2828
2929}
@@ -37,16 +37,16 @@ export function KanbanColumn({
3737 onDealClick,
3838 calculateColumnValue,
3939 calculateWeightedValue,
40- addNewDeal,
41- onAddCustomer,
40+ // addNewDeal,
41+ // onAddCustomer,
4242 compact = false ,
4343} : KanbanColumnProps ) {
44- const [ isDialogOpen , setIsDialogOpen ] = useState ( false )
44+ // const [isDialogOpen, setIsDialogOpen] = useState(false)
4545
4646 return (
4747 < div className = "flex flex-col w-80" >
4848 < h2 className = "text-xl font-semibold mb-4" > { status . charAt ( 0 ) . toUpperCase ( ) + status . slice ( 1 ) } </ h2 >
49- { addNewDeal && (
49+ { /* { addNewDeal && (
5050 <Dialog open={isDialogOpen} onOpenChange={setIsDialogOpen}>
5151 <DialogTrigger asChild>
5252 <Button className="mb-4 w-full">
@@ -68,7 +68,7 @@ export function KanbanColumn({
6868 />
6969 </DialogContent>
7070 </Dialog>
71- ) }
71+ )} */ }
7272 < Droppable droppableId = { status } isDropDisabled = { false } >
7373 { ( provided ) => (
7474 < div
You can’t perform that action at this time.
0 commit comments