Skip to content

Commit

Permalink
Fix A4A layout
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcaires committed Jan 22, 2025
1 parent 5dd81ff commit e12b0ae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ export default function OverviewHeaderActions() {
/>
) }
{ isEnabled( 'a4a-updated-add-new-site' ) ? (
<AddNewSite />
<div>
<AddNewSite />
</div>
) : (
<AddNewSiteButton
showMainButtonLabel={ ! isNarrowView }
Expand Down
20 changes: 6 additions & 14 deletions client/components/add-new-site/content/a4a/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,14 @@ import AddNewSitesA4AModals from 'calypso/components/add-new-site/modals/a4a';
import AddNewSitePopover from 'calypso/components/add-new-site/popover';
import type { AddNewSiteContentProps } from 'calypso/components/add-new-site/types';

const AddNewSiteA4A = ( {
isMenuVisible,
popoverMenuContext,
setMenuVisible,
toggleMenu,
}: AddNewSiteContentProps ) => {
const AddNewSiteA4A = ( { isMenuVisible, setMenuVisible, toggleMenu }: AddNewSiteContentProps ) => {
return (
<>
<AddNewSitePopover
isMenuVisible={ isMenuVisible }
toggleMenu={ toggleMenu }
popoverMenuContext={ popoverMenuContext }
popoverClassName="a4a-popover"
>
<AddNewSiteA4AMenuItems setMenuVisible={ setMenuVisible } />
</AddNewSitePopover>
<div>
<AddNewSitePopover isMenuVisible={ isMenuVisible } toggleMenu={ toggleMenu }>
<AddNewSiteA4AMenuItems setMenuVisible={ setMenuVisible } />
</AddNewSitePopover>
</div>
<AddNewSitesA4AModals />
</>
);
Expand Down

0 comments on commit e12b0ae

Please sign in to comment.