Skip to content

Commit

Permalink
Intercept routes and remove tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
abefernan committed Oct 3, 2024
1 parent 3209a6c commit 5c2149e
Show file tree
Hide file tree
Showing 19 changed files with 35 additions and 1,569 deletions.
17 changes: 17 additions & 0 deletions app/@span/(.)[...span]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import TxData from "@/components/tx-data";
import { Sheet, SheetContent } from "@/components/ui/sheet";

export default function Tx({ params }: { params: { span: string[] } }) {
const [txId, spanId] = params.span;

return (
<Sheet defaultOpen>
<SheetContent className="min-w-[80%]">
<div>
<div>Transaction {txId}</div>
<TxData txId={txId} spanId={spanId} />
</div>
</SheetContent>
</Sheet>
);
}
3 changes: 3 additions & 0 deletions app/@span/default.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function Default() {
return null;
}
File renamed without changes.
15 changes: 12 additions & 3 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Providers from "@/providers";
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import { PropsWithChildren } from "react";
import { PropsWithChildren, ReactNode } from "react";
import "./globals.css";

const inter = Inter({ subsets: ["latin"] });
Expand All @@ -11,11 +11,20 @@ export const metadata: Metadata = {
description: "Generated by create next app",
};

export default function RootLayout({ children }: PropsWithChildren) {
type RootLayoutProps = PropsWithChildren & {
span: ReactNode;
};

export default function RootLayout({ children, span }: RootLayoutProps) {
return (
<html lang="en">
<body className={inter.className}>
<Providers>{children}</Providers>
<Providers>
<>
{children}
{span}
</>
</Providers>
</body>
</html>
);
Expand Down
121 changes: 0 additions & 121 deletions app/tasks/components/columns.tsx

This file was deleted.

70 changes: 0 additions & 70 deletions app/tasks/components/data-table-column-header.tsx

This file was deleted.

146 changes: 0 additions & 146 deletions app/tasks/components/data-table-faceted-filter.tsx

This file was deleted.

Loading

0 comments on commit 5c2149e

Please sign in to comment.