REF: License to TSX

This commit is contained in:
Marcos Rodriguez Velez 2024-02-04 12:39:55 -04:00
parent 197702582e
commit a225b10801
No known key found for this signature in database
GPG Key ID: 6030B2F48CCE86D7
3 changed files with 11 additions and 14 deletions

View File

@ -6,7 +6,7 @@ import { Platform, useWindowDimensions, Dimensions, I18nManager } from 'react-na
import Settings from './screen/settings/Settings'; import Settings from './screen/settings/Settings';
import About from './screen/settings/about'; import About from './screen/settings/about';
import ReleaseNotes from './screen/settings/releasenotes'; import ReleaseNotes from './screen/settings/releasenotes';
import Licensing from './screen/settings/licensing'; import Licensing from './screen/settings/Licensing';
import Selftest from './screen/selftest'; import Selftest from './screen/selftest';
import Language from './screen/settings/language'; import Language from './screen/settings/language';
import Currency from './screen/settings/Currency'; import Currency from './screen/settings/Currency';

View File

@ -281,6 +281,7 @@
"language": "Language", "language": "Language",
"last_updated": "Last Updated", "last_updated": "Last Updated",
"language_isRTL": "Restarting BlueWallet is required for the language orientation to take effect.", "language_isRTL": "Restarting BlueWallet is required for the language orientation to take effect.",
"license": "License",
"lightning_error_lndhub_uri": "Invalid LNDHub URI", "lightning_error_lndhub_uri": "Invalid LNDHub URI",
"lightning_saved": "Your changes have been saved successfully.", "lightning_saved": "Your changes have been saved successfully.",
"lightning_settings": "Lightning Settings", "lightning_settings": "Lightning Settings",

View File

@ -1,19 +1,12 @@
import React, { useState, useEffect } from 'react'; import React from 'react';
import { ScrollView } from 'react-native'; import { ScrollView } from 'react-native';
import navigationStyle from '../../components/navigationStyle'; import navigationStyle from '../../components/navigationStyle';
import { BlueCard, BlueText, BlueSpacing20, BlueLoading } from '../../BlueComponents'; import { BlueCard, BlueText, BlueSpacing20 } from '../../BlueComponents';
import SafeArea from '../../components/SafeArea'; import SafeArea from '../../components/SafeArea';
import loc from '../../loc';
const Licensing = () => { const Licensing = () => {
const [isLoading, setIsLoading] = useState(true); return (
useEffect(() => {
setIsLoading(false);
}, []);
return isLoading ? (
<BlueLoading />
) : (
<SafeArea> <SafeArea>
<ScrollView> <ScrollView>
<BlueCard> <BlueCard>
@ -46,8 +39,11 @@ const Licensing = () => {
); );
}; };
Licensing.navigationOptions = navigationStyle({ Licensing.navigationOptions = navigationStyle({}, options => {
title: 'License', return {
...options,
headerTitle: loc.settings.license,
};
}); });
export default Licensing; export default Licensing;