Skip to content

Commit

Permalink
CHANGE devtools example for previewWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Jan 30, 2020
1 parent cc6de18 commit 2aa4507
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions dev-kits/addon-preview-wrapper/src/register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ import { addons, types } from '@storybook/addons';
import { ADDON_ID } from './constants';

const PreviewWrapper: FunctionComponent<{}> = p => (
<div className="my-edit-wrapper">
<button type="button" onClick={() => {}}>
Edit this page
</button>
<div
style={{
width: '100%',
height: '100%',
boxSizing: 'border-box',
boxShadow: 'inset 0 0 10px black',
}}
>
{p.children}
</div>
);
Expand Down

0 comments on commit 2aa4507

Please sign in to comment.