66 lines
1.9 KiB
JavaScript
66 lines
1.9 KiB
JavaScript
import React from 'react'
|
|
import { Platform, Linking } from 'react-native'
|
|
|
|
import AppPage from '../common/app-page'
|
|
import AppText from '../common/app-text'
|
|
import Segment from '../common/segment'
|
|
import Button from '../common/button'
|
|
import ButtonRow from '../common/button-row'
|
|
|
|
import links from '../../i18n/en/links'
|
|
import { useTranslation } from 'react-i18next'
|
|
|
|
const AboutSection = () => {
|
|
const { t } = useTranslation()
|
|
return (
|
|
<AppPage title={t('settings.aboutSection.title')}>
|
|
<Segment>
|
|
<AppText>{t('settings.aboutSection.text')}</AppText>
|
|
<ButtonRow>
|
|
{[links.email, links.gitlab, links.website].map((link) => (
|
|
<Button
|
|
key={link.url}
|
|
isCTA
|
|
isSmall
|
|
onPress={() => Linking.openURL(link.url)}
|
|
>
|
|
{link.text}
|
|
</Button>
|
|
))}
|
|
</ButtonRow>
|
|
</Segment>
|
|
<Segment title={t('settings.philosophy.title')}>
|
|
<AppText>{t('settings.philosophy.text')}</AppText>
|
|
</Segment>
|
|
<Segment title={t('settings.credits.title')}>
|
|
<AppText>
|
|
{t('settings.credits.note', {
|
|
smashicons: links.smashicons.url,
|
|
pause08: links.pause08.url,
|
|
kazachek: links.kazachek.url,
|
|
freepik: links.freepik.url,
|
|
flaticon: links.flaticon.url,
|
|
})}
|
|
</AppText>
|
|
</Segment>
|
|
<Segment title={t('settings.donate.title')}>
|
|
<AppText>{t('settings.donate.note')}</AppText>
|
|
{Platform.OS !== 'ios' && (
|
|
<Button
|
|
isCTA
|
|
isSmall
|
|
onPress={() => Linking.openURL(links.donate.url)}
|
|
>
|
|
{t('settings.donate.text')}
|
|
</Button>
|
|
)}
|
|
</Segment>
|
|
<Segment title={t('settings.version.title')} last>
|
|
<AppText>{require('../../package.json').version}</AppText>
|
|
</Segment>
|
|
</AppPage>
|
|
)
|
|
}
|
|
|
|
export default AboutSection
|