Skip to content

Commit 588a974

Browse files
committed
fix coderabbit feedback
1 parent d64e6ce commit 588a974

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

apps/dashboard/app/(main)/organizations/components/organizations-list.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@ import {
66
CalendarIcon,
77
CheckIcon,
88
GearIcon,
9-
PlusIcon,
109
TrashIcon,
1110
} from '@phosphor-icons/react';
1211
import dayjs from 'dayjs';
1312
import relativeTime from 'dayjs/plugin/relativeTime';
1413
import Link from 'next/link';
1514
import { useState } from 'react';
1615
import { toast } from 'sonner';
17-
import { CreateOrganizationDialog } from '@/components/organizations/create-organization-dialog';
1816
import {
1917
AlertDialog,
2018
AlertDialogAction,
@@ -43,7 +41,6 @@ import {
4341
} from '@/hooks/use-organizations';
4442
import { cn, getOrganizationInitials } from '@/lib/utils';
4543
import { EmptyState } from './empty-state';
46-
import { ListSkeleton } from './list-skeleton';
4744

4845
dayjs.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

Comments
 (0)