-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from contember/pr/sandbox_title_fix
Pr/sandbox title fix
- Loading branch information
Showing
8 changed files
with
72 additions
and
79 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }) => ( | ||
<ContemberLayout | ||
sidebarHeader={<Logo image={<ContemberLogoImage withLabel />}>Contember</Logo>} | ||
navigation={<Navigation />} | ||
children={props.children} | ||
/> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Menu } from '@contember/admin' | ||
|
||
export const Navigation = () => ( | ||
<Menu> | ||
<Menu.Item title="Dashboard" to="index"> | ||
<Menu.Item title="Inputs" to="inputs" /> | ||
<Menu.Item title="Tags" to="tags" /> | ||
<Menu.Item title="Categories" to="categories" /> | ||
<Menu.Item title="Articles" to="articleList" /> | ||
<Menu.Item title="Homepage" to="homepage" /> | ||
<Menu.Item title="Foo" to="fooPage" /> | ||
<Menu.Item title="Bar" to="barPage" /> | ||
<Menu.Item title="Lorem" to="loremPage"> | ||
<Menu.Item title="Bar 2" to="barPage"> | ||
<Menu.Item title="Bar 3" to="barPage" /> | ||
</Menu.Item> | ||
</Menu.Item> | ||
</Menu.Item> | ||
<Menu.Item title="Other"> | ||
<Menu.Item title="Bar 4" to="barPage" /> | ||
</Menu.Item> | ||
</Menu> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { EditPage, Link } from '@contember/admin' | ||
|
||
export const SecondPage = ( | ||
<EditPage pageName="second" entity="UploadShowcase(unique = One)"> | ||
<Link to="dashboard">DASHBOARD</Link> | ||
<EditPage pageName="second" entity="UploadShowcase(unique = One)" setOnCreate="(unique = One)"> | ||
<Link to="index">DASHBOARD</Link> | ||
</EditPage> | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters