Skip to content

Commit edfbd73

Browse files
committed
cleanup deadcode
1 parent 6a0a8ff commit edfbd73

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
"use client";
2-
3-
import { usePathname } from "next/navigation";
4-
import { useState } from "react";
5-
import { useDashboardContext } from "../Contexts";
6-
import { MembersDialog } from "../spaces/[spaceId]/components/MembersDialog";
72
import Top from "./Navbar/Top";
83

94
export default function DashboardInner({
105
children,
116
}: {
127
children: React.ReactNode;
138
}) {
14-
const { activeOrganization } = useDashboardContext();
15-
const [membersDialogOpen, setMembersDialogOpen] = useState(false);
16-
const isSharedCapsPage = usePathname() === "/dashboard/shared-caps";
17-
189
return (
1910
<div className="flex overflow-hidden w-full flex-col flex-1 md:mt-0 mt-[126px]">
2011
<Top />
@@ -33,14 +24,6 @@ export default function DashboardInner({
3324
<div className="flex flex-col flex-1 gap-4 min-h-fit">{children}</div>
3425
</div>
3526
</main>
36-
{isSharedCapsPage && activeOrganization?.members && (
37-
<MembersDialog
38-
open={membersDialogOpen}
39-
onOpenChange={setMembersDialogOpen}
40-
members={activeOrganization.members}
41-
organizationName={activeOrganization.organization.name || ""}
42-
/>
43-
)}
4427
</div>
4528
);
4629
}

apps/web/app/(org)/dashboard/spaces/[spaceId]/components/MembersDialog.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@cap/ui";
22
import type { ImageUpload } from "@cap/web-domain";
3-
import { ImageUpdatePayload } from "@cap/web-domain/src/ImageUpload";
43
import { SignedImageUrl } from "@/components/SignedImageUrl";
54

65
interface OrganizationMember {
@@ -45,7 +44,7 @@ export const MembersDialog = ({
4544
className="flex items-center p-2 rounded-lg hover:bg-gray-3"
4645
>
4746
<SignedImageUrl
48-
image={member.user?.memberImage || undefined}
47+
image={member.user?.memberImage}
4948
name={member.user?.name || "User"}
5049
className="mr-3 size-8"
5150
letterClass="text-md"

0 commit comments

Comments
 (0)