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' ) }

);