tooot/src/screens/Tabs/Me/Root/Settings.tsx

32 lines
842 B
TypeScript
Raw Normal View History

2021-01-11 21:36:57 +01:00
import { MenuContainer, MenuRow } from '@components/Menu'
import { useNavigation } from '@react-navigation/native'
2020-11-22 00:46:23 +01:00
import React from 'react'
import { useTranslation } from 'react-i18next'
2020-11-22 00:46:23 +01:00
const Settings: React.FC = () => {
2020-11-29 18:08:31 +01:00
const { t } = useTranslation('meRoot')
const navigation = useNavigation()
2020-11-22 00:46:23 +01:00
return (
<MenuContainer>
2021-02-10 00:40:44 +01:00
{/* <MenuRow
iconFront='User'
iconBack='ExternalLink'
title={t('content.accountSettings')}
onPress={() =>
localUrl &&
WebBrowser.openBrowserAsync(`https://${localUrl}/settings/profile`)
}
/> */}
2020-12-03 01:28:56 +01:00
<MenuRow
iconFront='Settings'
iconBack='ChevronRight'
2021-02-10 00:40:44 +01:00
title={t('content.appSettings')}
2021-01-30 01:29:15 +01:00
onPress={() => navigation.navigate('Tab-Me-Settings')}
/>
2020-11-22 00:46:23 +01:00
</MenuContainer>
)
}
export default Settings