diff --git a/packages/builder/src/components/deploy/DeployModal.svelte b/packages/builder/src/components/deploy/DeployModal.svelte index b88ec0a49c..4daa16c7c4 100644 --- a/packages/builder/src/components/deploy/DeployModal.svelte +++ b/packages/builder/src/components/deploy/DeployModal.svelte @@ -1,9 +1,6 @@ - - - - + /> + import analytics from "analytics" + import { createEventDispatcher } from "svelte" + import { fly } from "svelte/transition" import { ActionButton, RadioGroup, @@ -21,6 +24,8 @@ "Documentation", ] + const dispatch = createEventDispatcher() + // Data to send off let rating let improvements @@ -31,20 +36,23 @@ step = 1 } - function submitFeedback() { + function submitFeedback(ev) { // 1. Submit feedback // 2. dispatch event to parent and publish event // 3. Store cookie, flip user flag - console.log({ + + analytics.submitFeedback({ rating, improvements, comment, }) + + dispatch("submitted") } -
-