Skip to content

Commit

Permalink
Fix Annontools storyBook (#4921)
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh authored Jun 27, 2023
1 parent de5427a commit d411529
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
1 change: 1 addition & 0 deletions news/4921.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix Annontools StoryBook @sneridagh
22 changes: 16 additions & 6 deletions src/components/theme/Anontools/Anontools.stories.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
import React from 'react';
import { Anontools as AnontoolsDefault } from './Anontools';
import AnontoolsDefault from './Anontools';
import Wrapper from '@plone/volto/storybook';

const AnontoolsComponent = ({ children, ...args }) => {
return (
<Wrapper location={{ pathname: '/folder2/folder21/doc212' }}>
<Wrapper
anonymous
location={{ pathname: '/folder2/folder21/doc212' }}
customStore={{
content: {
data: { '@id': 'http://myreturnURL' },
get: {
loaded: false,
loading: false,
error: null,
},
},
}}
>
<div className="ui segment form attached" style={{ width: '400px' }}>
<AnontoolsDefault
userSession={{ token: null }}
content={{ '@id': 'myid' }}
/>
<AnontoolsDefault />
</div>
</Wrapper>
);
Expand Down

0 comments on commit d411529

Please sign in to comment.