diff --git a/assets/js/modules/service-urls.test.js b/assets/js/modules/service-urls.test.js index 94efa9c87fd..0dfb245033c 100644 --- a/assets/js/modules/service-urls.test.js +++ b/assets/js/modules/service-urls.test.js @@ -86,6 +86,11 @@ it( 'ensures all serviceURLs are properly constructed', () => { 'https://search.google.com/search-console/foo-path', 'https://search.google.com/search-console/foo-path?bar=baz', ], + 'modules/sign-in-with-google': [ + 'https://developers.google.com/identity/site-kit', + 'https://developers.google.com/identity/site-kit#/foo-path', + 'https://developers.google.com/identity/site-kit?bar=baz#/foo-path', + ], 'modules/tagmanager': [ 'https://tagmanager.google.com/', 'https://tagmanager.google.com/#/foo-path', diff --git a/assets/js/modules/sign-in-with-google/components/setup/SetupForm.js b/assets/js/modules/sign-in-with-google/components/setup/SetupForm.js index 661b1f5ed92..16a6f6dae1a 100644 --- a/assets/js/modules/sign-in-with-google/components/setup/SetupForm.js +++ b/assets/js/modules/sign-in-with-google/components/setup/SetupForm.js @@ -28,7 +28,6 @@ import { __ } from '@wordpress/i18n'; import { useSelect } from 'googlesitekit-data'; import StoreErrorNotices from '../../../../components/StoreErrorNotices'; import { MODULES_SIGN_IN_WITH_GOOGLE } from '../../datastore/constants'; -import { CORE_SITE } from '../../../../googlesitekit/datastore/site/constants'; import ClientIDTextField from '../common/ClientIDTextField'; import { Button } from 'googlesitekit-components'; import SupportLink from '../../../../components/SupportLink'; @@ -40,10 +39,9 @@ const LazyGraphicSVG = lazy( () => ); export default function SetupForm() { - const siteName = useSelect( ( select ) => - select( CORE_SITE ).getSiteName() + const clientIDURL = useSelect( ( select ) => + select( MODULES_SIGN_IN_WITH_GOOGLE ).getClientIDURL() ); - const homeURL = useSelect( ( select ) => select( CORE_SITE ).getHomeURL() ); return (
@@ -74,9 +72,7 @@ export default function SetupForm() {