diff --git a/apps/web/pages/dashboard.tsx b/apps/web/pages/dashboard.tsx index ef66d3b77..3f38efd5e 100644 --- a/apps/web/pages/dashboard.tsx +++ b/apps/web/pages/dashboard.tsx @@ -119,8 +119,8 @@ const DashboardPage: NextPageWithLayout = (props: any) => { aria-hidden="true" > diff --git a/apps/web/pages/documents/[id]/index.tsx b/apps/web/pages/documents/[id]/index.tsx index b660bb332..f14d76442 100644 --- a/apps/web/pages/documents/[id]/index.tsx +++ b/apps/web/pages/documents/[id]/index.tsx @@ -17,7 +17,7 @@ import { } from "@heroicons/react/24/outline"; import { getDocument } from "@documenso/lib/query"; import { Document as PrismaDocument } from "@prisma/client"; -import { Button } from "@documenso/ui"; +import { Button, Breadcrumb } from "@documenso/ui"; const PDFViewer = dynamic(() => import("../../../components/pdf-viewer"), { ssr: false, @@ -30,48 +30,7 @@ const DocumentsDetailPage: NextPageWithLayout = (props: any) => {
- - +
diff --git a/packages/ui/components/breadcrumb/breadcrumb.tsx b/packages/ui/components/breadcrumb/breadcrumb.tsx new file mode 100644 index 000000000..47a3b0576 --- /dev/null +++ b/packages/ui/components/breadcrumb/breadcrumb.tsx @@ -0,0 +1,52 @@ +import React from "react"; +import { ChevronLeftIcon, ChevronRightIcon } from "@heroicons/react/20/solid"; +import { NEXT_PUBLIC_WEBAPP_URL } from "@documenso/lib"; + +export function Breadcrumb(props: any) { + return ( + <> + + + + ); +} diff --git a/packages/ui/components/breadcrumb/index.ts b/packages/ui/components/breadcrumb/index.ts new file mode 100644 index 000000000..69b4a5ced --- /dev/null +++ b/packages/ui/components/breadcrumb/index.ts @@ -0,0 +1 @@ +export { Breadcrumb } from "./breadcrumb"; diff --git a/packages/ui/index.ts b/packages/ui/index.ts index a87f77d62..3115d535d 100644 --- a/packages/ui/index.ts +++ b/packages/ui/index.ts @@ -1 +1,2 @@ export { Button } from "./components/button/index"; +export { Breadcrumb } from "./components/breadcrumb/index";