Skip to content

Commit ba116bf

Browse files
committed
feat: add telemetry visibility toggle to SupportPage component
1 parent 0534320 commit ba116bf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/components/SupportPage/SupportPage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ const { Paragraph, Title } = Typography
1414

1515
interface SupportPageProps {
1616
isCashBackVisible: boolean
17+
isTelemetryVisible: boolean
1718
logoComponent: ReactNode
1819
pluginSlug: string
1920
}
2021

2122
export default function SupportPage({
2223
isCashBackVisible = true,
24+
isTelemetryVisible = true,
2325
logoComponent,
2426
pluginSlug
2527
}: SupportPageProps) {
@@ -42,7 +44,7 @@ export default function SupportPage({
4244

4345
<License pluginSlug={pluginSlug} />
4446

45-
<Improvement />
47+
{isTelemetryVisible && <Improvement />}
4648

4749
<SupportLinks pluginSlug={pluginSlug} />
4850
</Col>

0 commit comments

Comments
 (0)