diff --git a/site/web/App.jsx b/site/web/App.jsx index c29e9f5ef..1be55fadd 100644 --- a/site/web/App.jsx +++ b/site/web/App.jsx @@ -4,13 +4,6 @@ import { BrowserRouter, Navigate, Outlet, Route, Routes, useLocation, useNavigat import packageJson from '@/package.json'; import siteConfig from './site.config'; import { filterVersions, getRoute } from './utils'; -import { - htmlContent, - mainJsContent, - styleContent, - packageJSONContent, - tsconfigContent, -} from './components/codeSandbox/content'; const LazyDemo = lazy(() => import('./Demo')); @@ -55,26 +48,6 @@ function Components() { const [version] = useState(currentVersion); - const demoRequestBody = JSON.stringify({ - files: { - 'package.json': { - content: packageJSONContent, - }, - 'public/index.html': { - content: htmlContent, - }, - 'src/main.tsx': { - content: mainJsContent, - }, - 'src/index.css': { - content: styleContent, - }, - 'tsconfig.json': { - content: tsconfigContent, - }, - }, - }); - function initHistoryVersions() { fetch(registryUrl) .then((res) => res.json()) @@ -132,7 +105,6 @@ function Components() {
-