Skip to content

Commit

Permalink
client portal part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
potts99 committed Mar 25, 2024
1 parent a40a0bb commit 07cd877
Show file tree
Hide file tree
Showing 7 changed files with 584 additions and 5 deletions.
537 changes: 537 additions & 0 deletions apps/client/layouts/portalLayout.tsx

Large diffs are not rendered by default.

17 changes: 12 additions & 5 deletions apps/client/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import React from "react";
import AdminLayout from "../layouts/adminLayout";
import NewLayout from "../layouts/newLayout";
import NoteBookLayout from "../layouts/notebook";
import PortalLayout from "../layouts/portalLayout";
import Settings from "../layouts/settings";

const queryClient = new QueryClient();
Expand Down Expand Up @@ -159,12 +160,18 @@ function MyApp({ Component, pageProps: { session, ...pageProps } }: any) {
);
}

if (router.pathname.includes("/portal")) {
if (router.pathname.startsWith("/portal")) {
return (
<>
<Notifications position="top-right" />
<Component {...pageProps} />
</>
<SessionProvider>
<Theme>
<Auth>
<PortalLayout>
<Notifications position="top-right" />
<Component {...pageProps} />
</PortalLayout>
</Auth>
</Theme>
</SessionProvider>
);
}

Expand Down
7 changes: 7 additions & 0 deletions apps/client/pages/portal/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function Portal() {
return (
<div>
<h1>Portal</h1>
</div>
);
}
7 changes: 7 additions & 0 deletions apps/client/pages/portal/new.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function Portal() {
return (
<div>
<h1>Portal</h1>
</div>
);
}
7 changes: 7 additions & 0 deletions apps/client/pages/portal/tickets/closed.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function Portal() {
return (
<div>
<h1>Portal</h1>
</div>
);
}
7 changes: 7 additions & 0 deletions apps/client/pages/portal/tickets/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function Portal() {
return (
<div>
<h1>Portal</h1>
</div>
);
}
7 changes: 7 additions & 0 deletions apps/client/pages/portal/tickets/open.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function Portal() {
return (
<div>
<h1>Portal</h1>
</div>
);
}

0 comments on commit 07cd877

Please sign in to comment.