feat: Added FileSend links to general account menu and preferences menu

This commit is contained in:
Aman Harwara
2022-12-24 17:43:26 +05:30
parent 9fb506e532
commit 4f07b915f0
5 changed files with 55 additions and 16 deletions

View File

@@ -84,6 +84,17 @@ const GeneralAccountMenu: FunctionComponent<Props> = ({
setMenuPane(AccountMenuPane.SignIn)
}, [setMenuPane])
const openFileSend = useCallback(() => {
const link = 'https://filesend.standardnotes.com/'
if (application.isNativeMobileWeb()) {
application.mobileDevice().openUrl(link)
return
}
window.open(link, '_blank')
}, [application])
const CREATE_ACCOUNT_INDEX = 1
const SWITCHER_INDEX = 0
@@ -172,6 +183,10 @@ const GeneralAccountMenu: FunctionComponent<Props> = ({
</div>
<span className="text-neutral">v{application.version}</span>
</MenuItem>
<MenuItem onClick={openFileSend}>
<Icon type="open-in" className={iconClassName} />
Open FileSend
</MenuItem>
{user ? (
<>
<MenuItemSeparator />