Skip to content

Commit

Permalink
Update the URL for user connection
Browse files Browse the repository at this point in the history
  • Loading branch information
manzoorwanijk committed Oct 17, 2024
1 parent 438ee32 commit a224bab
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { getMyJetpackUrl } from '@automattic/jetpack-script-data';
import { PanelRow } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import usePublicizeConfig from '../../hooks/use-publicize-config';
Expand All @@ -7,7 +8,7 @@ import styles from './styles.module.scss';

export const ConnectionNotice: React.FC = () => {
const { hasConnections } = useSocialMediaConnections();
const { needsUserConnection, userConnectionUrl } = usePublicizeConfig();
const { needsUserConnection } = usePublicizeConfig();

if ( needsUserConnection ) {
return (
Expand All @@ -18,7 +19,7 @@ export const ConnectionNotice: React.FC = () => {
'jetpack'
) }
 
<a href={ userConnectionUrl }>{ __( 'Connect now', 'jetpack' ) }</a>
<a href={ getMyJetpackUrl( '#/connection' ) }>{ __( 'Connect now', 'jetpack' ) }</a>
</p>
</PanelRow>
);
Expand Down

0 comments on commit a224bab

Please sign in to comment.