@@ -30,7 +30,6 @@ import { subDays, isToday } from "date-fns"
30
30
import "react-date-range/dist/styles.css"
31
31
import "react-date-range/dist/theme/default.css"
32
32
import { DateRange , DateRangeValue } from "./DateRange"
33
- import { useDashboard } from "components/Dashboard/DashboardProvider"
34
33
import OpenInNewOutlined from "@mui/icons-material/OpenInNewOutlined"
35
34
import Link from "@mui/material/Link"
36
35
import CheckCircleOutlined from "@mui/icons-material/CheckCircleOutlined"
@@ -61,10 +60,6 @@ export default function TemplateInsightsPage() {
61
60
queryKey : [ "templates" , template . id , "user-latency" , insightsFilter ] ,
62
61
queryFn : ( ) => getInsightsUserLatency ( insightsFilter ) ,
63
62
} )
64
- const dashboard = useDashboard ( )
65
- const shouldDisplayParameters =
66
- dashboard . experiments . includes ( "template_parameters_insights" ) ||
67
- process . env . NODE_ENV === "development"
68
63
69
64
return (
70
65
< >
@@ -77,7 +72,6 @@ export default function TemplateInsightsPage() {
77
72
}
78
73
templateInsights = { templateInsights }
79
74
userLatency = { userLatency }
80
- shouldDisplayParameters = { shouldDisplayParameters }
81
75
/>
82
76
</ >
83
77
)
@@ -86,12 +80,10 @@ export default function TemplateInsightsPage() {
86
80
export const TemplateInsightsPageView = ( {
87
81
templateInsights,
88
82
userLatency,
89
- shouldDisplayParameters,
90
83
dateRange,
91
84
} : {
92
85
templateInsights : TemplateInsightsResponse | undefined
93
86
userLatency : UserLatencyInsightsResponse | undefined
94
- shouldDisplayParameters : boolean
95
87
dateRange : ReactNode
96
88
} ) => {
97
89
return (
@@ -114,12 +106,10 @@ export const TemplateInsightsPageView = ({
114
106
sx = { { gridColumn : "span 3" } }
115
107
data = { templateInsights ?. report . apps_usage }
116
108
/>
117
- { shouldDisplayParameters && (
118
- < TemplateParametersUsagePanel
119
- sx = { { gridColumn : "span 3" } }
120
- data = { templateInsights ?. report . parameters_usage }
121
- />
122
- ) }
109
+ < TemplateParametersUsagePanel
110
+ sx = { { gridColumn : "span 3" } }
111
+ data = { templateInsights ?. report . parameters_usage }
112
+ />
123
113
</ Box >
124
114
</ >
125
115
)
0 commit comments