docs: refactor analytics + remove segment (#13954)
* docs: refactor analytics + remove segment * small refactor of condition
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user