Upgrade relation picker (#8795)
- Rename all parts using the name "relation" to "record" when component is only selecting record - Remove the use of scope states in folder - Rename entities to records This PR prepares the use of the record picker in workflows
This commit is contained in:
@ -0,0 +1,11 @@
|
||||
import { Decorator } from '@storybook/react';
|
||||
|
||||
import { RecordPickerComponentInstanceContext } from '@/object-record/relation-picker/states/contexts/RecordPickerComponentInstanceContext';
|
||||
|
||||
export const RecordPickerDecorator: Decorator = (Story) => (
|
||||
<RecordPickerComponentInstanceContext.Provider
|
||||
value={{ instanceId: 'record-picker' }}
|
||||
>
|
||||
<Story />
|
||||
</RecordPickerComponentInstanceContext.Provider>
|
||||
);
|
||||
@ -1,9 +0,0 @@
|
||||
import { Decorator } from '@storybook/react';
|
||||
|
||||
import { RelationPickerScope } from '@/object-record/relation-picker/scopes/RelationPickerScope';
|
||||
|
||||
export const RelationPickerDecorator: Decorator = (Story) => (
|
||||
<RelationPickerScope relationPickerScopeId="relation-picker">
|
||||
<Story />
|
||||
</RelationPickerScope>
|
||||
);
|
||||
Reference in New Issue
Block a user