Skip to content

Commit 0d3ba51

Browse files
authored
Fix special reports (#5985)
* WIP * Update modes * Clarify what report is going to render * Make special goal report work
1 parent a0bd5f8 commit 0d3ba51

File tree

6 files changed

+377
-315
lines changed

6 files changed

+377
-315
lines changed

assets/js/dashboard/components/notice.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import { sectionTitles } from '../stats/behaviours'
2+
import { MODES } from '../stats/behaviours/modes-context'
33
import * as api from '../api'
44
import { useSiteContext } from '../site-context'
55

@@ -11,7 +11,7 @@ export function FeatureSetupNotice({
1111
onHideAction
1212
}) {
1313
const site = useSiteContext()
14-
const sectionTitle = sectionTitles[feature]
14+
const sectionTitle = MODES[feature].title
1515

1616
const requestHideSection = () => {
1717
if (

0 commit comments

Comments
 (0)