[WEB-5043] feat: web vite migration (#7973)

This commit is contained in:
Prateek Shourya 2025-11-06 14:08:48 +05:30 committed by GitHub
parent 118ecc81ba
commit 696fb96e87
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
642 changed files with 3013 additions and 2311 deletions

View file

@ -1,13 +1,16 @@
"use client";
import { Outlet } from "react-router";
// components
import { NotificationsSidebarRoot } from "@/components/workspace-notifications/sidebar";
export default function ProjectInboxIssuesLayout({ children }: { children: React.ReactNode }) {
export default function ProjectInboxIssuesLayout() {
return (
<div className="relative w-full h-full overflow-hidden flex items-center">
<NotificationsSidebarRoot />
<div className="w-full h-full overflow-hidden overflow-y-auto">{children}</div>
<div className="w-full h-full overflow-hidden overflow-y-auto">
<Outlet />
</div>
</div>
);
}

View file

@ -1,7 +1,6 @@
"use client";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// plane imports
import { useTranslation } from "@plane/i18n";
// components
@ -9,9 +8,10 @@ import { PageHead } from "@/components/core/page-title";
import { NotificationsRoot } from "@/components/workspace-notifications";
// hooks
import { useWorkspace } from "@/hooks/store/use-workspace";
import type { Route } from "./+types/page";
const WorkspaceDashboardPage = observer(() => {
const { workspaceSlug } = useParams();
function WorkspaceDashboardPage({ params }: Route.ComponentProps) {
const { workspaceSlug } = params;
// plane hooks
const { t } = useTranslation();
// hooks
@ -24,9 +24,9 @@ const WorkspaceDashboardPage = observer(() => {
return (
<>
<PageHead title={pageTitle} />
<NotificationsRoot workspaceSlug={workspaceSlug?.toString()} />
<NotificationsRoot workspaceSlug={workspaceSlug} />
</>
);
});
}
export default WorkspaceDashboardPage;
export default observer(WorkspaceDashboardPage);