Added RecordFieldValueSelectorContext (#5596)

Added RecordFieldValueSelectorContext on mock container so that new
record value using use-context-selector can work properly in fields
module.
This commit is contained in:
Lucas Bordeau 2024-05-27 14:02:38 +02:00 committed by GitHub
parent 3051f3a790
commit 2c009afd36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,7 @@
import styled from '@emotion/styled';
import { IconBuildingSkyscraper } from 'twenty-ui';
import { RecordFieldValueSelectorContextProvider } from '@/object-record/record-store/contexts/RecordFieldValueSelectorContext';
import { RecordTableActionBar } from '@/object-record/record-table/action-bar/components/RecordTableActionBar';
import { RecordTableContextMenu } from '@/object-record/record-table/context-menu/components/RecordTableContextMenu';
import { SignInBackgroundMockContainer } from '@/sign-in-background-mock/components/SignInBackgroundMockContainer';
@ -24,11 +25,13 @@ export const SignInBackgroundMockPage = () => {
<PageAddButton onClick={() => {}} />
</PageHeader>
<PageBody>
<StyledTableContainer>
<SignInBackgroundMockContainer />
</StyledTableContainer>
<RecordTableActionBar recordTableId="mock" />
<RecordTableContextMenu recordTableId="mock" />
<RecordFieldValueSelectorContextProvider>
<StyledTableContainer>
<SignInBackgroundMockContainer />
</StyledTableContainer>
<RecordTableActionBar recordTableId="mock" />
<RecordTableContextMenu recordTableId="mock" />
</RecordFieldValueSelectorContextProvider>
</PageBody>
</PageContainer>
);