mirror of
https://github.com/lingble/twenty.git
synced 2025-10-31 20:57:55 +00:00
@@ -2,6 +2,8 @@ import styled from '@emotion/styled';
|
|||||||
|
|
||||||
import { ActionMenuComponentInstanceContext } from '@/action-menu/states/contexts/ActionMenuComponentInstanceContext';
|
import { ActionMenuComponentInstanceContext } from '@/action-menu/states/contexts/ActionMenuComponentInstanceContext';
|
||||||
import { ContextStoreComponentInstanceContext } from '@/context-store/states/contexts/ContextStoreComponentInstanceContext';
|
import { ContextStoreComponentInstanceContext } from '@/context-store/states/contexts/ContextStoreComponentInstanceContext';
|
||||||
|
import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem';
|
||||||
|
import { RecordIndexRootPropsContext } from '@/object-record/record-index/contexts/RecordIndexRootPropsContext';
|
||||||
import { RecordTableWithWrappers } from '@/object-record/record-table/components/RecordTableWithWrappers';
|
import { RecordTableWithWrappers } from '@/object-record/record-table/components/RecordTableWithWrappers';
|
||||||
import { SignInBackgroundMockContainerEffect } from '@/sign-in-background-mock/components/SignInBackgroundMockContainerEffect';
|
import { SignInBackgroundMockContainerEffect } from '@/sign-in-background-mock/components/SignInBackgroundMockContainerEffect';
|
||||||
import { ViewBar } from '@/views/components/ViewBar';
|
import { ViewBar } from '@/views/components/ViewBar';
|
||||||
@@ -20,9 +22,26 @@ export const SignInBackgroundMockContainer = () => {
|
|||||||
const recordIndexId = 'sign-up-mock-record-table-id';
|
const recordIndexId = 'sign-up-mock-record-table-id';
|
||||||
const viewBarId = 'companies-mock';
|
const viewBarId = 'companies-mock';
|
||||||
|
|
||||||
|
const { objectMetadataItem } = useObjectMetadataItem({
|
||||||
|
objectNameSingular,
|
||||||
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<StyledContainer>
|
<StyledContainer>
|
||||||
<ViewComponentInstanceContext.Provider value={{ instanceId: viewBarId }}>
|
<RecordIndexRootPropsContext.Provider
|
||||||
|
value={{
|
||||||
|
recordIndexId,
|
||||||
|
objectNamePlural,
|
||||||
|
objectNameSingular,
|
||||||
|
objectMetadataItem,
|
||||||
|
onIndexRecordsLoaded: () => {},
|
||||||
|
indexIdentifierUrl: () => '',
|
||||||
|
onCreateRecord: () => {},
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<ViewComponentInstanceContext.Provider
|
||||||
|
value={{ instanceId: recordIndexId }}
|
||||||
|
>
|
||||||
<ContextStoreComponentInstanceContext.Provider
|
<ContextStoreComponentInstanceContext.Provider
|
||||||
value={{
|
value={{
|
||||||
instanceId: recordIndexId,
|
instanceId: recordIndexId,
|
||||||
@@ -33,7 +52,7 @@ export const SignInBackgroundMockContainer = () => {
|
|||||||
>
|
>
|
||||||
<ViewBar
|
<ViewBar
|
||||||
viewBarId={viewBarId}
|
viewBarId={viewBarId}
|
||||||
onCurrentViewChange={async () => {}}
|
onCurrentViewChange={() => {}}
|
||||||
optionsDropdownButton={<></>}
|
optionsDropdownButton={<></>}
|
||||||
/>
|
/>
|
||||||
<SignInBackgroundMockContainerEffect
|
<SignInBackgroundMockContainerEffect
|
||||||
@@ -50,6 +69,7 @@ export const SignInBackgroundMockContainer = () => {
|
|||||||
</ActionMenuComponentInstanceContext.Provider>
|
</ActionMenuComponentInstanceContext.Provider>
|
||||||
</ContextStoreComponentInstanceContext.Provider>
|
</ContextStoreComponentInstanceContext.Provider>
|
||||||
</ViewComponentInstanceContext.Provider>
|
</ViewComponentInstanceContext.Provider>
|
||||||
|
</RecordIndexRootPropsContext.Provider>
|
||||||
</StyledContainer>
|
</StyledContainer>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user