mirror of
				https://github.com/lingble/twenty.git
				synced 2025-10-31 12:47:58 +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 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 { 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'; | ||||||
| @@ -21,22 +23,32 @@ export const SignInBackgroundMockContainer = () => { | |||||||
|   return ( |   return ( | ||||||
|     <StyledContainer> |     <StyledContainer> | ||||||
|       <ViewComponentInstanceContext.Provider value={{ instanceId: viewBarId }}> |       <ViewComponentInstanceContext.Provider value={{ instanceId: viewBarId }}> | ||||||
|         <ViewBar |         <ContextStoreComponentInstanceContext.Provider | ||||||
|           viewBarId={viewBarId} |           value={{ | ||||||
|           onCurrentViewChange={async () => {}} |             instanceId: recordIndexId, | ||||||
|           optionsDropdownButton={<></>} |           }} | ||||||
|         /> |         > | ||||||
|         <SignInBackgroundMockContainerEffect |           <ActionMenuComponentInstanceContext.Provider | ||||||
|           objectNamePlural={objectNamePlural} |             value={{ instanceId: recordIndexId }} | ||||||
|           recordTableId={recordIndexId} |           > | ||||||
|           viewId={viewBarId} |             <ViewBar | ||||||
|         /> |               viewBarId={viewBarId} | ||||||
|         <RecordTableWithWrappers |               onCurrentViewChange={async () => {}} | ||||||
|           objectNameSingular={objectNameSingular} |               optionsDropdownButton={<></>} | ||||||
|           recordTableId={recordIndexId} |             /> | ||||||
|           viewBarId={viewBarId} |             <SignInBackgroundMockContainerEffect | ||||||
|           updateRecordMutation={() => {}} |               objectNamePlural={objectNamePlural} | ||||||
|         /> |               recordTableId={recordIndexId} | ||||||
|  |               viewId={viewBarId} | ||||||
|  |             /> | ||||||
|  |             <RecordTableWithWrappers | ||||||
|  |               objectNameSingular={objectNameSingular} | ||||||
|  |               recordTableId={recordIndexId} | ||||||
|  |               viewBarId={viewBarId} | ||||||
|  |               updateRecordMutation={() => {}} | ||||||
|  |             /> | ||||||
|  |           </ActionMenuComponentInstanceContext.Provider> | ||||||
|  |         </ContextStoreComponentInstanceContext.Provider> | ||||||
|       </ViewComponentInstanceContext.Provider> |       </ViewComponentInstanceContext.Provider> | ||||||
|     </StyledContainer> |     </StyledContainer> | ||||||
|   ); |   ); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 bosiraphael
					bosiraphael