diff --git a/packages/admin-sandbox/src/Sandbox.tsx b/packages/admin-sandbox/src/Sandbox.tsx
deleted file mode 100644
index ca06417812..0000000000
--- a/packages/admin-sandbox/src/Sandbox.tsx
+++ /dev/null
@@ -1,33 +0,0 @@
-import { ContemberLogoImage, Layout, Logo, Menu, Pages } from '@contember/admin'
-import { FC } from 'react'
-import * as pages from './pages'
-
-const SandboxLayout: FC = props => {
- return (
- }>Contember}
- navigation={
}
- />
- )
-}
-
-export default () =>
diff --git a/packages/admin-sandbox/src/components/Layout.tsx b/packages/admin-sandbox/src/components/Layout.tsx
new file mode 100644
index 0000000000..d8215a5e13
--- /dev/null
+++ b/packages/admin-sandbox/src/components/Layout.tsx
@@ -0,0 +1,11 @@
+import { ReactNode } from 'react'
+import { ContemberLogoImage, Layout as ContemberLayout, Logo } from '@contember/admin'
+import { Navigation } from './Navigation'
+
+export const Layout = (props: { children?: ReactNode }) => (
+ }>Contember}
+ navigation={}
+ children={props.children}
+ />
+)
diff --git a/packages/admin-sandbox/src/components/Navigation.tsx b/packages/admin-sandbox/src/components/Navigation.tsx
new file mode 100644
index 0000000000..51a16917f2
--- /dev/null
+++ b/packages/admin-sandbox/src/components/Navigation.tsx
@@ -0,0 +1,23 @@
+import { Menu } from '@contember/admin'
+
+export const Navigation = () => (
+
+)
diff --git a/packages/admin-sandbox/src/index.tsx b/packages/admin-sandbox/src/index.tsx
index 1fc48be549..592c9d1ff1 100644
--- a/packages/admin-sandbox/src/index.tsx
+++ b/packages/admin-sandbox/src/index.tsx
@@ -1,5 +1,5 @@
-import { ApplicationEntrypoint, runReactApp } from '@contember/admin'
-import Sandbox from './Sandbox'
+import { ApplicationEntrypoint, Pages, runReactApp } from '@contember/admin'
+import { Layout } from './components/Layout'
import './index.sass'
runReactApp(
@@ -8,14 +8,11 @@ runReactApp(
sessionToken={import.meta.env.VITE_CONTEMBER_ADMIN_SESSION_TOKEN as string}
project={'admin-sandbox'}
stage={'live'}
- routes={{
- dashboard: { path: '/' },
- inputs: { path: '/inputs' },
- second: { path: '/2nd' },
- fooPage: { path: '/foo' },
- barPage: { path: '/bar' },
- loremPage: { path: '/lorem' },
- }}
- children={}
+ children={
+
+ }
/>,
)
diff --git a/packages/admin-sandbox/src/pages/DashboardPage.tsx b/packages/admin-sandbox/src/pages/IndexPage.tsx
similarity index 88%
rename from packages/admin-sandbox/src/pages/DashboardPage.tsx
rename to packages/admin-sandbox/src/pages/IndexPage.tsx
index c62f4ab024..381f3c2bff 100644
--- a/packages/admin-sandbox/src/pages/DashboardPage.tsx
+++ b/packages/admin-sandbox/src/pages/IndexPage.tsx
@@ -9,13 +9,8 @@ import {
VideoFiles,
} from '@contember/admin'
-// export const DashboardPage = (
-//
-//
-// )
-
-export const DashboardPage = (
-
+export const IndexPage = (
+
SECOND
- DASHBOARD
+
+ DASHBOARD
)
diff --git a/packages/admin-sandbox/src/pages/index.ts b/packages/admin-sandbox/src/pages/index.ts
deleted file mode 100644
index b7ba7ed93a..0000000000
--- a/packages/admin-sandbox/src/pages/index.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-export * from './ArticlePages'
-export * from './CategoryPages'
-export * from './DashboardPage'
-export * from './HomepagePage'
-export * from './InputsPage'
-export * from './RandomPages'
-export * from './SecondPage'
-export * from './TagPages'
diff --git a/packages/ui/src/components/Menu.tsx b/packages/ui/src/components/Menu.tsx
index 9a215b51f3..b8a3b7fdb1 100644
--- a/packages/ui/src/components/Menu.tsx
+++ b/packages/ui/src/components/Menu.tsx
@@ -83,30 +83,38 @@ namespace Menu {
}
function Title(props: TitleProps) {
- const { children, external, suppressTo, onClick, ...otherProps } = props
- const content =
- if (otherProps.href) {
- return {
- if (onClick && !isSpecialLinkClick(event.nativeEvent)) {
- onClick(event)
- if (suppressTo) {
- event.preventDefault()
- }
+ const content =
+
+ if (props.href) {
+ const onClick = (event: ReactMouseEvent) => {
+ if (props.onClick && !isSpecialLinkClick(event.nativeEvent)) {
+ props.onClick(event)
+ if (props.suppressTo) {
+ event.preventDefault()
}
- }}
- {...otherProps}
- >{content}
- } else if (onClick) {
+ }
+ }
+
return (
-