@@ -177,7 +177,6 @@ export const OrganizationSwitcherPopover = React.forwardRef<HTMLDivElement, Orga
177177 sx = { t => ( {
178178 width : '100%' ,
179179 paddingRight : t . space . $5 ,
180- borderBottom : `${ t . borders . $normal } ${ t . colors . $neutralAlpha100 } ` ,
181180 } ) }
182181 >
183182 < OrganizationPreview
@@ -204,24 +203,28 @@ export const OrganizationSwitcherPopover = React.forwardRef<HTMLDivElement, Orga
204203 { ...rest }
205204 >
206205 < PopoverCard . Content elementDescriptor = { descriptors . organizationSwitcherPopoverMain } >
207- { currentOrg
208- ? selectedOrganizationPreview ( currentOrg )
209- : ! hidePersonal && (
210- < PersonalWorkspacePreview
211- user = { userWithoutIdentifiers }
212- sx = { t => ( {
213- padding : `${ t . space . $4 } ${ t . space . $5 } ` ,
214- borderBottom : `${ t . borders . $normal } ${ t . colors . $neutralAlpha100 } ` ,
215- width : '100%' ,
216- } ) }
217- title = { localizationKeys ( 'organizationSwitcher.personalWorkspace' ) }
218- />
219- ) }
220- < OrganizationActionList
221- onCreateOrganizationClick = { handleCreateOrganizationClicked }
222- onPersonalWorkspaceClick = { handlePersonalWorkspaceClicked }
223- onOrganizationClick = { handleOrganizationClicked }
224- />
206+ < Actions
207+ elementDescriptor = { descriptors . organizationSwitcherPopoverActions }
208+ role = 'menu'
209+ >
210+ { currentOrg
211+ ? selectedOrganizationPreview ( currentOrg )
212+ : ! hidePersonal && (
213+ < PersonalWorkspacePreview
214+ user = { userWithoutIdentifiers }
215+ sx = { t => ( {
216+ padding : `${ t . space . $4 } ${ t . space . $5 } ` ,
217+ width : '100%' ,
218+ } ) }
219+ title = { localizationKeys ( 'organizationSwitcher.personalWorkspace' ) }
220+ />
221+ ) }
222+ < OrganizationActionList
223+ onCreateOrganizationClick = { handleCreateOrganizationClicked }
224+ onPersonalWorkspaceClick = { handlePersonalWorkspaceClicked }
225+ onOrganizationClick = { handleOrganizationClicked }
226+ />
227+ </ Actions >
225228 </ PopoverCard . Content >
226229 < PopoverCard . Footer elementDescriptor = { descriptors . organizationSwitcherPopoverFooter } />
227230 </ PopoverCard . Root >
0 commit comments