mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Make dropdown menu in welcome page in a center position (react dashboard)
GitOrigin-RevId: c9c68d41dd00208ddde3400ed04f9fe3425a5613
This commit is contained in:
parent
3fde2b7207
commit
de97ef98c0
2 changed files with 4 additions and 1 deletions
|
@ -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, {
|
||||
|
|
|
@ -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"
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue