Skip to content

Commit

Permalink
Remove direct call to the audience segmentation setup success notific…
Browse files Browse the repository at this point in the history
…ation.
  • Loading branch information
jimmymadon committed Sep 23, 2024
1 parent d0c48cf commit 478701c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions assets/js/components/notifications/SubtleNotifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,13 @@ import { Fragment } from '@wordpress/element';
/**
* Internal dependencies
*/
import { useFeature } from '../../hooks/useFeature';
import AudienceSegmentationSetupSuccessSubtleNotification from '../../modules/analytics-4/components/audience-segmentation/dashboard/AudienceSegmentationSetupSuccessSubtleNotification';
import GA4AdSenseLinkedNotification from './GA4AdSenseLinkedNotification';
import useViewContext from '../../hooks/useViewContext';
import Notifications from './Notifications';
import { NOTIFICATION_AREAS } from '../../googlesitekit/notifications/datastore/constants';

export default function SubtleNotifications() {
const viewContext = useViewContext();
const audienceSegmentationEnabled = useFeature( 'audienceSegmentation' );

// Each notification component rendered here has its own logic to determine
// whether it should be displayed; in most cases none of these components
Expand All @@ -44,9 +41,6 @@ export default function SubtleNotifications() {
// Because these notifications are subtle and small, this is acceptable UX.
return (
<Fragment>
{ audienceSegmentationEnabled && (
<AudienceSegmentationSetupSuccessSubtleNotification />
) }
<GA4AdSenseLinkedNotification />
<Notifications
viewContext={ viewContext }
Expand Down

0 comments on commit 478701c

Please sign in to comment.