Refactor/context and scopes (#1602)
* Put onImport in a context * Refactored RecoilScopeContexts * Refactored naming * Fix tests --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -6,7 +6,9 @@ export const ComponentWithRecoilScopeDecorator: Decorator = (
|
||||
Story,
|
||||
context,
|
||||
) => (
|
||||
<RecoilScope SpecificContext={context.parameters.recoilScopeContext}>
|
||||
<RecoilScope
|
||||
CustomRecoilScopeContext={context.parameters.customRecoilScopeContext}
|
||||
>
|
||||
<Story />
|
||||
</RecoilScope>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user