hotfix: add normalize styles in docz wrapper
This commit is contained in:
parent
5915398d76
commit
b671f7bb8d
17
app/theme.js
17
app/theme.js
|
@ -1,5 +1,5 @@
|
|||
// @flow
|
||||
import React from 'react';
|
||||
import React, { Fragment } from 'react';
|
||||
import theme from 'styled-theming';
|
||||
import { ThemeProvider, createGlobalStyle } from 'styled-components';
|
||||
// $FlowFixMe
|
||||
|
@ -40,10 +40,17 @@ const appTheme = {
|
|||
},
|
||||
};
|
||||
|
||||
/* eslint-disable react/prop-types */
|
||||
// $FlowFixMe
|
||||
export const DoczWrapper = ({ children }) => <ThemeProvider theme={appTheme}>{children()}</ThemeProvider>;
|
||||
|
||||
export const GlobalStyle = createGlobalStyle`${[normalize()]}`;
|
||||
|
||||
/* eslint-disable react/prop-types */
|
||||
// $FlowFixMe
|
||||
export const DoczWrapper = ({ children }) => (
|
||||
<ThemeProvider theme={appTheme}>
|
||||
<Fragment>
|
||||
<GlobalStyle />
|
||||
{children()}
|
||||
</Fragment>
|
||||
</ThemeProvider>
|
||||
);
|
||||
|
||||
export default appTheme;
|
||||
|
|
Loading…
Reference in New Issue