Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion assets/js/components/DashboardMainApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import SurveyViewTrigger from './surveys/SurveyViewTrigger';
import CurrentSurveyPortal from './surveys/CurrentSurveyPortal';
import MetricsSelectionPanel from './KeyMetrics/MetricsSelectionPanel';
import UserSettingsSelectionPanel from './email-reporting/UserSettingsSelectionPanel';
import WelcomeModal from './WelcomeModal';
import { useFeature } from '@/js/hooks/useFeature';
import {
ANCHOR_ID_CONTENT,
Expand Down Expand Up @@ -229,6 +230,7 @@ export default function DashboardMainApp() {
} );

const emailReportingEnabled = useFeature( 'proactiveUserEngagement' );
const setupFlowRefreshEnabled = useFeature( 'setupFlowRefresh' );

useMonitorInternetConnection();

Expand Down Expand Up @@ -320,7 +322,6 @@ export default function DashboardMainApp() {
lastWidgetAnchor === ANCHOR_ID_MONETIZATION,
} ) }
/>
<OfflineNotification />
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's out of scope, but I've removed this duplicate <OfflineNotification />, having spotted that it's rendered twice when it should only be rendered once.

</div>

<SurveyViewTrigger
Expand All @@ -336,6 +337,8 @@ export default function DashboardMainApp() {

{ configuredAudiences && <AudienceSelectionPanel /> }

{ setupFlowRefreshEnabled && <WelcomeModal /> }

<OfflineNotification />
</Fragment>
);
Expand Down
Loading
Loading