fix: track zenmode and grid mode usage (#2900)

This commit is contained in:
Aakansha Doshi 2021-02-02 20:57:22 +05:30 committed by GitHub
parent 210649f383
commit 3e2890bd21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -1,9 +1,12 @@
import { CODES, KEYS } from "../keys";
import { register } from "./register";
import { trackEvent } from "../analytics";
export const actionToggleZenMode = register({
name: "zenMode",
perform(elements, appState) {
trackEvent("view", "mode", "zen");
return {
appState: {
...appState,