Skip to content

Commit

Permalink
Fix googlesitekit-data import in Error Notice.
Browse files Browse the repository at this point in the history
  • Loading branch information
tofumatt committed Jul 4, 2024
1 parent 8a2dbf5 commit 56ec1a7
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { __ } from '@wordpress/i18n';
/**
* Internal dependencies
*/
import Data from 'googlesitekit-data';
import { useSelect, useDispatch } from 'googlesitekit-data';
import { CORE_SITE } from '../../../../../../googlesitekit/datastore/site/constants';
import { MODULES_ANALYTICS_4 } from '../../../../datastore/constants';
import { isInsufficientPermissionsError } from '../../../../../../util/errors';
Expand All @@ -34,8 +34,6 @@ import ReportErrorActions from '../../../../../../components/ReportErrorActions'
import RequestAccessButton from './RequestAccessButton';
import RetryButton from './RetryButton';

const { useSelect, useDispatch } = Data;

export default function ErrorNotice() {
const syncAvailableAudiencesError = useSelect( ( select ) =>
select( MODULES_ANALYTICS_4 ).getErrorForAction(
Expand Down

0 comments on commit 56ec1a7

Please sign in to comment.