-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trial using context for renderingTarget
- Loading branch information
Showing
27 changed files
with
71 additions
and
218 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
dotcom-rendering/.storybook/decorators/RenderingTargetDecorator.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { RenderingTargetContext } from '../../src/components/RenderingTarget'; | ||
|
||
export const RenderingTargetDecorator = (Story, { args }) => { | ||
return ( | ||
<RenderingTargetContext.Provider value={args.renderingTarget}> | ||
<Story /> | ||
</RenderingTargetContext.Provider> | ||
); | ||
}; | ||
|
||
export default RenderingTargetDecorator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.