@@ -6,15 +6,13 @@ import {
66 CalendarIcon ,
77 CheckIcon ,
88 GearIcon ,
9- PlusIcon ,
109 TrashIcon ,
1110} from '@phosphor-icons/react' ;
1211import dayjs from 'dayjs' ;
1312import relativeTime from 'dayjs/plugin/relativeTime' ;
1413import Link from 'next/link' ;
1514import { useState } from 'react' ;
1615import { toast } from 'sonner' ;
17- import { CreateOrganizationDialog } from '@/components/organizations/create-organization-dialog' ;
1816import {
1917 AlertDialog ,
2018 AlertDialogAction ,
@@ -43,7 +41,6 @@ import {
4341} from '@/hooks/use-organizations' ;
4442import { cn , getOrganizationInitials } from '@/lib/utils' ;
4543import { EmptyState } from './empty-state' ;
46- import { ListSkeleton } from './list-skeleton' ;
4744
4845dayjs . extend ( relativeTime ) ;
4946
@@ -110,7 +107,6 @@ export function OrganizationsList({
110107 id : string ;
111108 name : string ;
112109 } | null > ( null ) ;
113- const [ showCreateDialog , setShowCreateDialog ] = useState ( false ) ;
114110
115111 const handleSetActive = ( organizationId : string ) => {
116112 setActiveOrganization ( organizationId ) ;
@@ -120,10 +116,6 @@ export function OrganizationsList({
120116 setConfirmDelete ( { id : organizationId , name : organizationName } ) ;
121117 } ;
122118
123- const handleCreateOrganization = ( ) => {
124- setShowCreateDialog ( true ) ;
125- } ;
126-
127119 const confirmDeleteAction = async ( ) => {
128120 if ( ! confirmDelete ) {
129121 return ;
@@ -321,11 +313,6 @@ export function OrganizationsList({
321313 </ AlertDialogFooter >
322314 </ AlertDialogContent >
323315 </ AlertDialog >
324-
325- < CreateOrganizationDialog
326- isOpen = { showCreateDialog }
327- onClose = { ( ) => setShowCreateDialog ( false ) }
328- />
329316 </ div >
330317 ) ;
331318}
0 commit comments