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