mirror of
				https://github.com/lingble/twenty.git
				synced 2025-10-31 20:57:55 +00:00 
			
		
		
		
	Merge branch '7339-implement-contextual-actions-inside-the-commandmenu' into 8023-update-action-menu-bar
This commit is contained in:
		| @@ -1,5 +1,7 @@ | ||||
| import styled from '@emotion/styled'; | ||||
|  | ||||
| import { ActionMenuComponentInstanceContext } from '@/action-menu/states/contexts/ActionMenuComponentInstanceContext'; | ||||
| import { ContextStoreComponentInstanceContext } from '@/context-store/states/contexts/ContextStoreComponentInstanceContext'; | ||||
| import { RecordTableWithWrappers } from '@/object-record/record-table/components/RecordTableWithWrappers'; | ||||
| import { SignInBackgroundMockContainerEffect } from '@/sign-in-background-mock/components/SignInBackgroundMockContainerEffect'; | ||||
| import { ViewBar } from '@/views/components/ViewBar'; | ||||
| @@ -21,22 +23,32 @@ export const SignInBackgroundMockContainer = () => { | ||||
|   return ( | ||||
|     <StyledContainer> | ||||
|       <ViewComponentInstanceContext.Provider value={{ instanceId: viewBarId }}> | ||||
|         <ViewBar | ||||
|           viewBarId={viewBarId} | ||||
|           onCurrentViewChange={async () => {}} | ||||
|           optionsDropdownButton={<></>} | ||||
|         /> | ||||
|         <SignInBackgroundMockContainerEffect | ||||
|           objectNamePlural={objectNamePlural} | ||||
|           recordTableId={recordIndexId} | ||||
|           viewId={viewBarId} | ||||
|         /> | ||||
|         <RecordTableWithWrappers | ||||
|           objectNameSingular={objectNameSingular} | ||||
|           recordTableId={recordIndexId} | ||||
|           viewBarId={viewBarId} | ||||
|           updateRecordMutation={() => {}} | ||||
|         /> | ||||
|         <ContextStoreComponentInstanceContext.Provider | ||||
|           value={{ | ||||
|             instanceId: recordIndexId, | ||||
|           }} | ||||
|         > | ||||
|           <ActionMenuComponentInstanceContext.Provider | ||||
|             value={{ instanceId: recordIndexId }} | ||||
|           > | ||||
|             <ViewBar | ||||
|               viewBarId={viewBarId} | ||||
|               onCurrentViewChange={async () => {}} | ||||
|               optionsDropdownButton={<></>} | ||||
|             /> | ||||
|             <SignInBackgroundMockContainerEffect | ||||
|               objectNamePlural={objectNamePlural} | ||||
|               recordTableId={recordIndexId} | ||||
|               viewId={viewBarId} | ||||
|             /> | ||||
|             <RecordTableWithWrappers | ||||
|               objectNameSingular={objectNameSingular} | ||||
|               recordTableId={recordIndexId} | ||||
|               viewBarId={viewBarId} | ||||
|               updateRecordMutation={() => {}} | ||||
|             /> | ||||
|           </ActionMenuComponentInstanceContext.Provider> | ||||
|         </ContextStoreComponentInstanceContext.Provider> | ||||
|       </ViewComponentInstanceContext.Provider> | ||||
|     </StyledContainer> | ||||
|   ); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 bosiraphael
					bosiraphael