|
@@ -17,6 +17,7 @@ import {
|
|
|
DropdownMenu,
|
|
DropdownMenu,
|
|
|
DropdownToggle,
|
|
DropdownToggle,
|
|
|
} from '@/shared/components/dropdown/dropdown-menu'
|
|
} from '@/shared/components/dropdown/dropdown-menu'
|
|
|
|
|
+import type { DropdownProps } from '@/shared/components/types/dropdown-menu-props'
|
|
|
import { useSendProjectListMB } from '@/features/project-list/components/project-list-events'
|
|
import { useSendProjectListMB } from '@/features/project-list/components/project-list-events'
|
|
|
import type { PortalTemplate } from '../../../../../types/portal-template'
|
|
import type { PortalTemplate } from '../../../../../types/portal-template'
|
|
|
import { useFeatureFlag } from '@/shared/context/split-test-context'
|
|
import { useFeatureFlag } from '@/shared/context/split-test-context'
|
|
@@ -45,6 +46,7 @@ type NewProjectButtonProps = {
|
|
|
className?: string
|
|
className?: string
|
|
|
trackingKey?: string
|
|
trackingKey?: string
|
|
|
showAddAffiliationWidget?: boolean
|
|
showAddAffiliationWidget?: boolean
|
|
|
|
|
+ align?: DropdownProps['align']
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function NewProjectButton({
|
|
function NewProjectButton({
|
|
@@ -53,6 +55,7 @@ function NewProjectButton({
|
|
|
className,
|
|
className,
|
|
|
trackingKey,
|
|
trackingKey,
|
|
|
showAddAffiliationWidget,
|
|
showAddAffiliationWidget,
|
|
|
|
|
+ align,
|
|
|
}: NewProjectButtonProps) {
|
|
}: NewProjectButtonProps) {
|
|
|
const { t } = useTranslation()
|
|
const { t } = useTranslation()
|
|
|
const { templateLinks } = getMeta('ol-ExposedSettings')
|
|
const { templateLinks } = getMeta('ol-ExposedSettings')
|
|
@@ -174,6 +177,7 @@ function NewProjectButton({
|
|
|
return (
|
|
return (
|
|
|
<>
|
|
<>
|
|
|
<Dropdown
|
|
<Dropdown
|
|
|
|
|
+ align={align}
|
|
|
className={classnames('new-project-dropdown', className)}
|
|
className={classnames('new-project-dropdown', className)}
|
|
|
onSelect={handleMainButtonClick}
|
|
onSelect={handleMainButtonClick}
|
|
|
onToggle={nextShow => {
|
|
onToggle={nextShow => {
|