From a224babde172532439ba92ba2d4db48b215350b9 Mon Sep 17 00:00:00 2001 From: Manzoor Wani Date: Thu, 17 Oct 2024 12:27:56 +0530 Subject: [PATCH] Update the URL for user connection --- .../src/components/form/connection-notice.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/js-packages/publicize-components/src/components/form/connection-notice.tsx b/projects/js-packages/publicize-components/src/components/form/connection-notice.tsx index f4bedf6763ccb..3d91d085372bb 100644 --- a/projects/js-packages/publicize-components/src/components/form/connection-notice.tsx +++ b/projects/js-packages/publicize-components/src/components/form/connection-notice.tsx @@ -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'; @@ -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 ( @@ -18,7 +19,7 @@ export const ConnectionNotice: React.FC = () => { 'jetpack' ) }   - { __( 'Connect now', 'jetpack' ) } + { __( 'Connect now', 'jetpack' ) }

);