diff --git a/packages/website/src/features/Packages/CannonfileExplorer.tsx b/packages/website/src/features/Packages/CannonfileExplorer.tsx
index 07861fe3e..bf7b2cf35 100644
--- a/packages/website/src/features/Packages/CannonfileExplorer.tsx
+++ b/packages/website/src/features/Packages/CannonfileExplorer.tsx
@@ -152,7 +152,7 @@ export const CannonfileExplorer: FC<{ pkg: ApiPackage }> = ({ pkg }) => {
diff --git a/packages/website/src/pages/packages/[name]/[tag]/[variant]/_layout.tsx b/packages/website/src/pages/packages/[name]/[tag]/[variant]/_layout.tsx
index d8fc5dcab..960cc95d6 100644
--- a/packages/website/src/pages/packages/[name]/[tag]/[variant]/_layout.tsx
+++ b/packages/website/src/pages/packages/[name]/[tag]/[variant]/_layout.tsx
@@ -20,7 +20,6 @@ import { useQueryIpfsDataParsed } from '@/hooks/ipfs';
import { DeploymentInfo } from '@usecannon/builder';
import PageLoading from '@/components/PageLoading';
-import PackageAccordionHelper from '@/features/Packages/PackageAccordionHelper';
import { usePackageNameTagVariantUrlParams } from '@/hooks/routing/usePackageNameTagVariantUrlParams';
import { usePackageByRef } from '@/hooks/api/usePackage';
@@ -88,19 +87,20 @@ function TagVariantLayout({ children }: { children: ReactNode }) {
-
+ Overview
+
+
Deployment
diff --git a/packages/website/src/pages/packages/[name]/[tag]/[variant]/deployment/index.tsx b/packages/website/src/pages/packages/[name]/[tag]/[variant]/deployment/index.tsx
new file mode 100644
index 000000000..2a4552ef6
--- /dev/null
+++ b/packages/website/src/pages/packages/[name]/[tag]/[variant]/deployment/index.tsx
@@ -0,0 +1,31 @@
+import dynamic from 'next/dynamic';
+import { useRouter } from 'next/router';
+
+import TagVariantLayout from '../_layout';
+import { ReactElement } from 'react';
+
+const DeploymentTab = dynamic(
+ async () => {
+ return import('@/features/Packages/Tabs/DeploymentTab');
+ },
+ {
+ ssr: false,
+ }
+);
+
+export default function Deployment() {
+ const params = useRouter().query;
+ return (
+ <>
+
+ >
+ );
+}
+
+Deployment.getLayout = function getLayout(page: ReactElement) {
+ return
{page};
+};
diff --git a/packages/website/src/pages/packages/[name]/[tag]/[variant]/index.tsx b/packages/website/src/pages/packages/[name]/[tag]/[variant]/index.tsx
index 641202d09..5edf8b1e2 100644
--- a/packages/website/src/pages/packages/[name]/[tag]/[variant]/index.tsx
+++ b/packages/website/src/pages/packages/[name]/[tag]/[variant]/index.tsx
@@ -1,4 +1,3 @@
-import dynamic from 'next/dynamic';
import { useRouter } from 'next/router';
import { NextSeo } from 'next-seo';
import defaultSEO from '@/constants/defaultSeo';
@@ -7,15 +6,8 @@ import { PackageReference } from '@usecannon/builder';
import TagVariantLayout from './_layout';
import { ReactElement } from 'react';
import { useCannonChains } from '@/providers/CannonProvidersProvider';
-
-const DeploymentTab = dynamic(
- async () => {
- return import('@/features/Packages/Tabs/DeploymentTab');
- },
- {
- ssr: false,
- }
-);
+import PackageAccordionHelper from '@/features/Packages/PackageAccordionHelper';
+import { usePackageNameTagVariantUrlParams } from '@/hooks/routing/usePackageNameTagVariantUrlParams';
function generateMetadata({
params,
@@ -53,10 +45,13 @@ function generateMetadata({
return metadata;
}
-export default function Deployment() {
- const params = useRouter().query;
+export default function Overview() {
+ const { query: params } = useRouter();
const { getChainById } = useCannonChains();
const metadata = generateMetadata({ params: params as any, getChainById });
+
+ const { name, tag, chainId, preset } = usePackageNameTagVariantUrlParams();
+
return (
<>
-
+
>
);
}
-Deployment.getLayout = function getLayout(page: ReactElement) {
+Overview.getLayout = function getLayout(page: ReactElement) {
return
{page};
};