Skip to content

Commit 09b4396

Browse files
committed
Cleanup unused code from main layout
1 parent 6ef925e commit 09b4396

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

typescript-sdk/apps/dojo/src/components/layout/main-layout.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,9 @@ import React, { Suspense, useState } from "react";
44
import { ViewerLayout } from "@/components/layout/viewer-layout";
55
import { Sidebar } from "@/components/sidebar/sidebar";
66

7-
import { usePathname, useSearchParams } from "next/navigation";
8-
import featureConfig from "@/config";
7+
import { useSearchParams } from "next/navigation";
98

109
export function MainLayout({ children }: { children: React.ReactNode }) {
11-
const pathname = usePathname();
12-
13-
14-
// Extract the current demo ID from the pathname
15-
const pathParts = pathname.split("/");
16-
const currentFeatureId = pathParts[pathParts.length - 1];
17-
const currentFeature = featureConfig.find((d) => d.id === currentFeatureId);
18-
1910
return (
2011
<ViewerLayout showFileTree={false} showCodeEditor={false}>
2112
<div className="flex h-full w-full overflow-hidden">

0 commit comments

Comments
 (0)