Chore/Retire hyperlink library

This commit is contained in:
Sofiya Tepikin
2022-09-19 09:25:16 +00:00
parent 0597540b88
commit f957553026
9 changed files with 52 additions and 90 deletions
+6 -4
View File
@@ -4,16 +4,18 @@ import { useTranslation } from 'react-i18next'
import AppPage from '../common/app-page'
import AppText from '../common/app-text'
import AppLink from '../common/AppLink'
import Segment from '../common/segment'
const License = ({ children }) => {
const { t } = useTranslation()
const { t } = useTranslation(null, { keyPrefix: 'settings.license' })
const currentYear = new Date().getFullYear()
const link = 'https://www.gnu.org/licenses/gpl-3.0.html'
return (
<AppPage title={t('settings.license.title')}>
<AppPage title={t('title')}>
<Segment last>
<AppText>{t('settings.license.text', { currentYear })}</AppText>
<AppText>{t('text', { currentYear })}</AppText>
<AppLink url={link}>{link}</AppLink>
{children}
</Segment>
</AppPage>