Make dropdown menu in welcome page in a center position (react dashboard)

GitOrigin-RevId: c9c68d41dd00208ddde3400ed04f9fe3425a5613
This commit is contained in:
M Fahru 2023-02-02 10:18:28 -07:00 committed by Copybot
parent 3fde2b7207
commit de97ef98c0
2 changed files with 4 additions and 1 deletions

View file

@ -30,6 +30,7 @@ type NewProjectButtonProps = {
id: string
buttonText?: string
className?: string
menuClassName?: string
trackingKey?: string
}
@ -37,6 +38,7 @@ function NewProjectButton({
id,
buttonText,
className,
menuClassName,
trackingKey,
}: NewProjectButtonProps) {
const { t } = useTranslation()
@ -146,7 +148,7 @@ function NewProjectButton({
>
{buttonText || t('new_project')}
</Dropdown.Toggle>
<Dropdown.Menu>
<Dropdown.Menu className={menuClassName}>
<MenuItem
onClick={e =>
handleModalMenuClick(e, {

View file

@ -38,6 +38,7 @@ export default function WelcomeMessage() {
<div className="dropdown minimal-create-proj-dropdown">
<NewProjectButton
id="new-project-button-welcome"
menuClassName="minimal-create-proj-dropdown-menu"
buttonText={t('create_first_project')}
trackingKey="welcome-page-create-first-project-click"
/>