docs: refactor analytics + remove segment (#13954)

* docs: refactor analytics + remove segment

* small refactor of condition
This commit is contained in:
Shahed Nasser authored and GitHub committed 2025-11-04 14:53:56 +02:00
1 parent baec64d4f1
commit 32f9c15b1b
11 files changed
+146 -129

No files matched your search

@@ -90,12 +90,9 @@ export const Feedback = ({
: showForm
? inlineQuestionRef
: inlineFeedbackRef
const { loaded, track } = useAnalytics()
const { track } = useAnalytics()
function handleFeedback(feedback: boolean) {
if (!loaded) {
return
}
setPositiveFeedback(feedback)
setShowForm(true)
submitFeedback(feedback)