Skip to content

Commit

Permalink
Fix broken 'Add site' link on the list of domains (#96964)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekn authored Dec 3, 2024
1 parent 595b41e commit 4bd726a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { SiteDetails } from '@automattic/data-stores';
import { useI18n } from '@wordpress/react-i18n';
import { domainOnlySiteCreationLink } from '../utils/paths';
import type { MouseEvent } from 'react';

interface DomainsTableSiteCellProps {
site: Pick< SiteDetails, 'ID' | 'name' >;
Expand All @@ -20,6 +21,7 @@ export const DomainsTableSiteCell = ( {
<a
className="domains-table__add-site-link"
href={ domainOnlySiteCreationLink( siteSlug, site.ID ) }
onClick={ ( e: MouseEvent ) => e.stopPropagation() }
>
{ __( 'Add site' ) }
</a>
Expand Down

0 comments on commit 4bd726a

Please sign in to comment.