+
- )
-}
+ );
+};
-export default Layout
+export default Layout;
diff --git a/tools/obscuroscan_v3/frontend/components/layouts/header.tsx b/tools/obscuroscan_v3/frontend/components/layouts/header.tsx
index 4137245095..a6bef9cd31 100644
--- a/tools/obscuroscan_v3/frontend/components/layouts/header.tsx
+++ b/tools/obscuroscan_v3/frontend/components/layouts/header.tsx
@@ -19,7 +19,7 @@ export default function Header() {
-
+ {/* */}
diff --git a/tools/obscuroscan_v3/frontend/components/modules/common/connect-wallet.tsx b/tools/obscuroscan_v3/frontend/components/modules/common/connect-wallet.tsx
index 96dda24a8d..3ccd176745 100644
--- a/tools/obscuroscan_v3/frontend/components/modules/common/connect-wallet.tsx
+++ b/tools/obscuroscan_v3/frontend/components/modules/common/connect-wallet.tsx
@@ -17,15 +17,14 @@ const ConnectWalletButton = ({ children }: { children?: React.ReactNode }) => {
{walletConnected ? (
<>
- Disconnect
+
Disconnect Wallet
>
) : (
<>
- Connect
+
Connect to Metamask
>
- )}{" "}
- Wallet
+ )}
>
);
diff --git a/tools/obscuroscan_v3/frontend/components/modules/dashboard/index.tsx b/tools/obscuroscan_v3/frontend/components/modules/dashboard/index.tsx
index b1b298df31..04fb050671 100644
--- a/tools/obscuroscan_v3/frontend/components/modules/dashboard/index.tsx
+++ b/tools/obscuroscan_v3/frontend/components/modules/dashboard/index.tsx
@@ -70,44 +70,43 @@ export default function Dashboard() {
];
const RECENT_DATA = [
- {
- title: "Recent Batches",
- data: batches,
- component:
,
- goTo: "/batches",
- },
{
title: "Recent Blocks",
data: blocks,
component:
,
goTo: "/blocks",
+ className: "sm:col-span-1 md:col-span-6 lg:col-span-3",
+ },
+ {
+ title: "Recent Batches",
+ data: batches,
+ component:
,
+ goTo: "/batches",
+ className: "sm:col-span-1 md:col-span-3 lg:col-span-3",
},
{
title: "Recent Transactions",
data: transactions,
component:
,
goTo: "/transactions",
+ className: "sm:col-span-1 md:col-span-3 lg:col-span-3",
},
];
return (
-
+ <>
Obscuroscan
-
-
-
-
-
+
{DASHBOARD_DATA.map((item: any, index) => (
))}
-
+
{RECENT_DATA.map((item: any, index) => (
-
-
+
+
{item.title}
-
+
{item.data ? (
item.component
) : (
@@ -129,6 +128,6 @@ export default function Dashboard() {
))}
-
+ >
);
}
diff --git a/tools/obscuroscan_v3/frontend/components/modules/dashboard/recent-batches.tsx b/tools/obscuroscan_v3/frontend/components/modules/dashboard/recent-batches.tsx
index 2a6944f3d5..ee9408aea8 100644
--- a/tools/obscuroscan_v3/frontend/components/modules/dashboard/recent-batches.tsx
+++ b/tools/obscuroscan_v3/frontend/components/modules/dashboard/recent-batches.tsx
@@ -15,17 +15,15 @@ export function RecentBatches({ batches }: { batches: any }) {
BN
-
- Batch #{batch?.number}
-
-
+
#{batch?.number}
+
{formatTimeAgo(batch?.timestamp)}
-
+
-
+
- Block #{block?.blockHeader?.number}
+ #{block?.blockHeader?.number}
-
+
{formatTimeAgo(block?.blockHeader?.timestamp)}
-
+
-
+
- Batch Height: #{transaction?.BatchHeight}
+ Height: #{transaction?.BatchHeight}
diff --git a/tools/obscuroscan_v3/frontend/components/modules/resources/decrypt.tsx b/tools/obscuroscan_v3/frontend/components/modules/resources/decrypt.tsx
index 4da0864b2a..523991ae2c 100644
--- a/tools/obscuroscan_v3/frontend/components/modules/resources/decrypt.tsx
+++ b/tools/obscuroscan_v3/frontend/components/modules/resources/decrypt.tsx
@@ -1,7 +1,24 @@
+import { Alert, AlertTitle, AlertDescription } from "@/components/ui/alert";
+import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card";
+import { Skeleton } from "@/components/ui/skeleton";
+import { Terminal } from "lucide-react";
+import React from "react";
+
export default function Decrypt() {
return (
-
-
Decrypt
-
+
+
+ Static Keys
+
+
+
+
+ Heads up!
+
+ You can add components and dependencies to your app using the cli.
+
+
+
+
);
}
diff --git a/tools/obscuroscan_v3/frontend/components/ui/alert.tsx b/tools/obscuroscan_v3/frontend/components/ui/alert.tsx
new file mode 100644
index 0000000000..54697d2574
--- /dev/null
+++ b/tools/obscuroscan_v3/frontend/components/ui/alert.tsx
@@ -0,0 +1,59 @@
+import * as React from "react"
+import { cva, type VariantProps } from "class-variance-authority"
+
+import { cn } from "@/src/lib/utils"
+
+const alertVariants = cva(
+ "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
+ {
+ variants: {
+ variant: {
+ default: "bg-background text-foreground",
+ destructive:
+ "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ },
+ }
+)
+
+const Alert = React.forwardRef<
+ HTMLDivElement,
+ React.HTMLAttributes
& VariantProps
+>(({ className, variant, ...props }, ref) => (
+
+))
+Alert.displayName = "Alert"
+
+const AlertTitle = React.forwardRef<
+ HTMLParagraphElement,
+ React.HTMLAttributes
+>(({ className, ...props }, ref) => (
+
+))
+AlertTitle.displayName = "AlertTitle"
+
+const AlertDescription = React.forwardRef<
+ HTMLParagraphElement,
+ React.HTMLAttributes
+>(({ className, ...props }, ref) => (
+
+))
+AlertDescription.displayName = "AlertDescription"
+
+export { Alert, AlertTitle, AlertDescription }