A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: close announcement dialog on action click
thecodrr5aa09cb4ad1b
diff --git a/apps/web/src/components/announcements/body.js b/apps/web/src/components/announcements/body.jsindex e1893076b..eed687935 100644--- a/apps/web/src/components/announcements/body.js+++ b/apps/web/src/components/announcements/body.js@@ -6,7 +6,10 @@ import {Text as RebassText,} from "rebass";import { allowedPlatforms } from "../../utils/use-announcements";-import { showBuyDialog } from "../../common/dialog-controller";+import {+ closeOpenedDialog,+ showBuyDialog,+} from "../../common/dialog-controller";import { ANALYTICS_EVENTS, trackEvent } from "../../utils/analytics";import * as Icon from "../icons";@@ -225,6 +228,7 @@ function CalltoAction({ action, index }) {},}}onClick={async () => {+ closeOpenedDialog();trackEvent(ANALYTICS_EVENTS.announcementCta, action.data);switch (action.type) {case "link":