Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: add privacy policy and tos links

thecodrrcf4097453b0b
diff --git a/apps/web/src/views/settings.js b/apps/web/src/views/settings.js
index 3e4df1cf8..8e6ced6ea 100644
--- a/apps/web/src/views/settings.js
+++ b/apps/web/src/views/settings.js
@@ -67,6 +67,11 @@ function subscriptionStatusToString(user) {
else return "Basic";
}
+const otherItems = [
+ { title: "Terms of Service", link: "https://notesnook.com/tos" },
+ { title: "Privacy Policy", link: "https://notesnook.com/privacy" },
+];
+
function Settings(props) {
const isSystemThemeDark = useSystemTheme();
const isVaultCreated = useAppStore((store) => store.isVaultCreated);
@@ -370,13 +375,13 @@ function Settings(props) {
>
Other
</Text>
- {["Terms of Service", "Privacy Policy"].map((title) => (
+ {otherItems.map((item) => (
<Button
- key={title}
+ key={item.title}
variant="list"
- onClick={() => showToast("warn", "TBD")}
+ onClick={() => window.open(item.link, "_blank")}
>
- {title}
+ {item.title}
</Button>
))}
<TextWithTip
diff --git a/apps/web/yarn.lock b/apps/web/yarn.lock
index e43d5ecfa..4a1dd4d1c 100644
--- a/apps/web/yarn.lock
+++ b/apps/web/yarn.lock
@@ -9349,7 +9349,7 @@ normalize-url@^4.1.0:
"notes-core@git+ssh://[email protected]:streetwriters/notesnook-core.git":
version "6.6.4"
- resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#770a87d044e267fe5d4f6bf328811969aeb228ec"
+ resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#70caae32c44468c1de1663d483bdd1838fc7f7be"
dependencies:
fast-sort "^2.0.1"
fuzzysort "^1.1.4"