Skip to content

Commit

Permalink
fix: store context type
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Jul 25, 2020
1 parent 55e6189 commit b22a6c5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugins/axe-plugin/src/stories/AllyBlock.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { FC } from 'react';
import { Store } from '@component-controls/store';
import { BlockContextProvider, store } from '@component-controls/blocks';
import { AxeAllyBlock } from '../index';

Expand All @@ -9,12 +8,10 @@ export default {
};

export const overview: FC = () => {
// eslint-disable-next-line react-hooks/rules-of-hooks
const storyStore = React.useMemo(() => new Store(store), []);
return (
<BlockContextProvider
storyId="blocks-core-story-plain--controls"
store={storyStore}
store={store}
>
<AxeAllyBlock id="." />
</BlockContextProvider>
Expand Down

0 comments on commit b22a6c5

Please sign in to comment.