-
Notifications
You must be signed in to change notification settings - Fork 80
/
config.js
38 lines (36 loc) 路 845 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import React from 'react';
import { addDecorator } from '@storybook/react';
import { addons } from '@storybook/addons';
addons.setConfig({
theme: {
brandTitle: 'React minimal pie chart',
brandUrl: 'https://github.com/toomuchdesign/react-minimal-pie-chart',
},
showPanel: false,
panelPosition: 'right',
});
addDecorator((story) => (
<div
style={{
maxWidth: '400px',
margin: '0 auto',
padding: '50px',
}}
>
{story()}
<p
style={{
color: '#333',
fontSize: '13px',
textAlign: 'center',
fontFamily: 'Helvetica Neue,Helvetica,Arial,sans-serif',
}}
>
Read the source of this demo{' '}
<a href="https://github.com/toomuchdesign/react-minimal-pie-chart/blob/master/stories/index.tsx">
here
</a>
.
</p>
</div>
));