-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[desk-tool] Rename empty list message component and refrain from usin…
…g any Pane
- Loading branch information
Thomas Drevon
committed
May 29, 2019
1 parent
a7469af
commit 2340e3a
Showing
5 changed files
with
30 additions
and
34 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
packages/@sanity/desk-tool/src/components/MissingDocumentTypesMessage.js
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,22 @@ | ||
import React from 'react' | ||
import styles from './styles/MissingDocumentTypesMessage.css' | ||
|
||
export default function MissingDocumentTypesMessage(props) { | ||
return ( | ||
<div className={styles.root}> | ||
<h2>Empty schema</h2> | ||
<p> | ||
Your{' '} | ||
<a | ||
title="Schema documentation" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
href="https://www.sanity.io/docs/content-studio/the-schema" | ||
> | ||
schema | ||
</a>{' '} | ||
does not contain any document types. If it did, those types would be listed here. | ||
</p> | ||
</div> | ||
) | ||
} |
6 changes: 6 additions & 0 deletions
6
packages/@sanity/desk-tool/src/components/styles/MissingDocumentTypesMessage.css
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,6 @@ | ||
@import 'part:@sanity/base/theme/variables-style'; | ||
|
||
.root { | ||
composes: absoluteCenter from 'part:@sanity/base/theme/layout/positioning-style'; | ||
text-align: left; | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.