-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b93614c
commit d3e5575
Showing
4 changed files
with
17 additions
and
36 deletions.
There are no files selected for viewing
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
27 changes: 0 additions & 27 deletions
27
examples/custom-admin-ui-pages/admin/components/CustomLogo.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
18 changes: 16 additions & 2 deletions
18
examples/custom-admin-ui-pages/admin/pages/custom-page.tsx
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,21 @@ | ||
import React from 'react'; | ||
/** @jsx jsx */ | ||
import { jsx, Stack } from '@keystone-ui/core'; | ||
// Please note that while this capability is driven by NextJS's pages directory | ||
// We do not currently expose any of the auxillary methods that NextJS provides i.e. `getStaticProps` | ||
// Presently the only export from the directory that is respected is the page component itself. | ||
export default function () { | ||
return <h1>Hello this is a custom page</h1>; | ||
return ( | ||
<Stack as="main" gap="sm"> | ||
<h1 | ||
css={{ | ||
maxWidth: '80%', | ||
width: '100%', | ||
textAlign: 'center', | ||
}} | ||
> | ||
Hello this is a custom page | ||
</h1> | ||
<p>This is a custom page added to the admin-ui</p> | ||
</Stack> | ||
); | ||
} |