Skip to content

Commit f826ccf

Browse files
committed
Assign objectUrl within default page, remove v0, add compact mode option
1 parent 8df98b7 commit f826ccf

File tree

5 files changed

+47
-445
lines changed

5 files changed

+47
-445
lines changed

website/src/app/page.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1-
import { redirect } from "next/navigation";
1+
"use client";
2+
3+
import { Box } from "@mui/material";
4+
5+
import PelicanWebClient from "@/components/client/PelicanWebClient";
6+
import { useSessionStorage } from "usehooks-ts";
27

38
function Page() {
4-
redirect("/v1");
9+
const [objectUrl] = useSessionStorage<string>("pelican-object-url", "pelican://osg-htc.org/ncar/");
10+
11+
return (
12+
<Box minHeight={"90vh"} margin={4} width={"1200px"} mx={"auto"}>
13+
<PelicanWebClient startingUrl={objectUrl} />
14+
</Box>
15+
);
516
}
617

718
export default Page;

0 commit comments

Comments
 (0)