Distinction between License and AcceptLicense screens

This commit is contained in:
Sofiya Tepikin
2022-09-18 13:02:43 +00:00
parent fb863c832b
commit f6a90994b6
6 changed files with 53 additions and 76 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import NfpSettings from './nfp-settings'
import DataManagement from './data-management'
import Password from './password'
import About from './about'
import License from './license'
import License from './License'
import PrivacyPolicy from './privacy-policy'
export default {
+7 -1
View File
@@ -1,11 +1,12 @@
import React from 'react'
import PropTypes from 'prop-types'
import { useTranslation } from 'react-i18next'
import AppPage from '../common/app-page'
import AppText from '../common/app-text'
import Segment from '../common/segment'
const License = () => {
const License = ({ children }) => {
const { t } = useTranslation()
const currentYear = new Date().getFullYear()
@@ -13,9 +14,14 @@ const License = () => {
<AppPage title={t('settings.license.title')}>
<Segment last>
<AppText>{t('settings.license.text', { currentYear })}</AppText>
{children}
</Segment>
</AppPage>
)
}
License.propTypes = {
children: PropTypes.node,
}
export default License