* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-import { DropdownMenu } from '@sonarsource/echoes-react';
+import { DropdownMenu, DropdownMenuAlign } from '@sonarsource/echoes-react';
import { MainMenuItem } from 'design-system';
import * as React from 'react';
import { translate } from '../../../../helpers/l10n';
return (
<DropdownMenu.Root
- align="start"
+ align={DropdownMenuAlign.Start}
id="moreMenuDropdown"
items={withoutPortfolios.map(renderGlobalPageLink)}
>
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-import { DropdownMenu } from '@sonarsource/echoes-react';
+import { DropdownMenu, DropdownMenuAlign } from '@sonarsource/echoes-react';
import { LightLabel, NavBarTabLink, NavBarTabs, TopBar } from 'design-system';
import * as React from 'react';
import { Location } from 'react-router-dom';
return (
<DropdownMenu.Root
- align="start"
+ align={DropdownMenuAlign.Start}
id="settings-navigation-configuration-dropdown"
items={
<>
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-import { DropdownMenu } from '@sonarsource/echoes-react';
+import { DropdownMenu, DropdownMenuAlign } from '@sonarsource/echoes-react';
import { ButtonSecondary, ChevronDownIcon, TextMuted } from 'design-system';
import * as React from 'react';
import { translate } from '../../helpers/l10n';
return (
<div className={className}>
<div className="sw-flex">
- <DropdownMenu.Root id="activity-graph-type" align="start" items={options}>
+ <DropdownMenu.Root align={DropdownMenuAlign.Start} id="activity-graph-type" items={options}>
<ButtonSecondary
aria-label={translate('project_activity.graphs.choose_type')}
className={
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-import { DropdownMenu, IconQuestionMark, Tooltip } from '@sonarsource/echoes-react';
+import {
+ DropdownMenu,
+ DropdownMenuAlign,
+ IconQuestionMark,
+ Tooltip,
+} from '@sonarsource/echoes-react';
import { InteractiveIcon } from 'design-system';
import * as React from 'react';
import { translate } from '../../helpers/l10n';
export default function EmbedDocsPopupHelper() {
return (
<div className="dropdown">
- <DropdownMenu.Root align="end" id="help-menu-dropdown" items={<EmbedDocsPopup />}>
+ <DropdownMenu.Root
+ align={DropdownMenuAlign.End}
+ id="help-menu-dropdown"
+ items={<EmbedDocsPopup />}
+ >
<Tooltip content={translate('help')}>
<InteractiveIcon
Icon={IconQuestionMark}