Skip to content

Commit

Permalink
UI: Remove emotion from NoDocs.js (#8454)
Browse files Browse the repository at this point in the history
UI: Remove emotion from NoDocs.js
  • Loading branch information
shilman committed Oct 22, 2019
1 parent 9abff33 commit 3953b50
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions lib/core/src/client/preview/NoDocs.js
@@ -1,27 +1,26 @@
import React from 'react';
import { styled } from '@storybook/theming';

const Wrapper = styled.div({
const wrapper = {
fontSize: '14px',
letterSpacing: '0.2px',
margin: '10px 0',
});
};

const Main = styled.div({
const main = {
margin: 'auto',
padding: '30px',
borderRadius: '10px',
background: 'rgba(0,0,0,0.03)',
});
};

const Heading = styled.h1({
const heading = {
textAlign: 'center',
});
};

export const NoDocs = () => (
<Wrapper className="sb-nodocs sb-wrapper">
<Main>
<Heading>No Docs</Heading>
<div style={wrapper} className="sb-nodocs sb-wrapper">
<div style={main}>
<h1 style={heading}>No Docs</h1>
<p>
Sorry, but there are no docs for the selected story. To add them, set the story's{' '}
<code>docs</code> parameter. If you think this is an error:
Expand All @@ -35,6 +34,6 @@ export const NoDocs = () => (
If the problem persists, check the browser console, or the terminal you've run Storybook
from.
</p>
</Main>
</Wrapper>
</div>
</div>
);

0 comments on commit 3953b50

Please sign in to comment.