Skip to content

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

web: add license to settings (#4020)

Muhammad Alibdb19ad32542
diff --git a/apps/web/src/dialogs/settings/other-settings.ts b/apps/web/src/dialogs/settings/other-settings.ts
index f40c46649..bb64e23d7 100644
--- a/apps/web/src/dialogs/settings/other-settings.ts
+++ b/apps/web/src/dialogs/settings/other-settings.ts
@@ -75,16 +75,17 @@ export const AboutSettings: SettingsGroup[] = [
{
key: "source-code",
title: "Source code",
- description: "All the source code for Notesnook is available & open for everyone on GitHub.",
+ description:
+ "All the source code for Notesnook is available & open for everyone on GitHub.",
components: [
{
type: "button",
action: () => {
- window.open(
- "https://github.com/streetwriters/notesnook",
- "_blank"
- );
- },
+ window.open(
+ "https://github.com/streetwriters/notesnook",
+ "_blank"
+ );
+ },
title: "View source code",
variant: "secondary"
}
@@ -234,6 +235,23 @@ export const LegalSettings: SettingsGroup[] = [
variant: "secondary"
}
]
+ },
+ {
+ key: "license",
+ title: "License",
+ description: "GNU GENERAL PUBLIC LICENSE Version 3",
+ components: [
+ {
+ type: "button",
+ action: () =>
+ void window.open(
+ "https://github.com/streetwriters/notesnook/blob/master/LICENSE",
+ "_blank"
+ ),
+ title: "Read License",
+ variant: "secondary"
+ }
+ ]
}
]
}