Feat/metadata datatable types (#2175)
* Handled new url v2 type * Fixed refetch queries * wip * Ok delete but views bug * Fix lint --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { ReactNode } from 'react';
|
||||
|
||||
import { MetadataObjectScopeInternalContext } from './scope-internal-context/MetadataObjectScopeInternalContext';
|
||||
|
||||
type MetadataObjectScopeProps = {
|
||||
children: ReactNode;
|
||||
metadataObjectNamePlural: string;
|
||||
};
|
||||
|
||||
export const MetadataObjectScope = ({
|
||||
children,
|
||||
metadataObjectNamePlural,
|
||||
}: MetadataObjectScopeProps) => {
|
||||
return (
|
||||
<MetadataObjectScopeInternalContext.Provider
|
||||
value={{
|
||||
scopeId: metadataObjectNamePlural,
|
||||
objectNamePlural: metadataObjectNamePlural,
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</MetadataObjectScopeInternalContext.Provider>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user