Skip to content

Commit

Permalink
Added RecordFieldValueSelectorContext (#5596)
Browse files Browse the repository at this point in the history
Added RecordFieldValueSelectorContext on mock container so that new
record value using use-context-selector can work properly in fields
module.
  • Loading branch information
lucasbordeau authored May 27, 2024
1 parent 3051f3a commit 2c009af
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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>
);
Expand Down

0 comments on commit 2c009af

Please sign in to comment.