mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-18 13:26:33 +01:00
REF: License to TSX
This commit is contained in:
parent
197702582e
commit
a225b10801
@ -6,7 +6,7 @@ import { Platform, useWindowDimensions, Dimensions, I18nManager } from 'react-na
|
||||
import Settings from './screen/settings/Settings';
|
||||
import About from './screen/settings/about';
|
||||
import ReleaseNotes from './screen/settings/releasenotes';
|
||||
import Licensing from './screen/settings/licensing';
|
||||
import Licensing from './screen/settings/Licensing';
|
||||
import Selftest from './screen/selftest';
|
||||
import Language from './screen/settings/language';
|
||||
import Currency from './screen/settings/Currency';
|
||||
|
@ -281,6 +281,7 @@
|
||||
"language": "Language",
|
||||
"last_updated": "Last Updated",
|
||||
"language_isRTL": "Restarting BlueWallet is required for the language orientation to take effect.",
|
||||
"license": "License",
|
||||
"lightning_error_lndhub_uri": "Invalid LNDHub URI",
|
||||
"lightning_saved": "Your changes have been saved successfully.",
|
||||
"lightning_settings": "Lightning Settings",
|
||||
|
@ -1,19 +1,12 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import React from 'react';
|
||||
import { ScrollView } from 'react-native';
|
||||
import navigationStyle from '../../components/navigationStyle';
|
||||
import { BlueCard, BlueText, BlueSpacing20, BlueLoading } from '../../BlueComponents';
|
||||
import { BlueCard, BlueText, BlueSpacing20 } from '../../BlueComponents';
|
||||
import SafeArea from '../../components/SafeArea';
|
||||
import loc from '../../loc';
|
||||
|
||||
const Licensing = () => {
|
||||
const [isLoading, setIsLoading] = useState(true);
|
||||
|
||||
useEffect(() => {
|
||||
setIsLoading(false);
|
||||
}, []);
|
||||
|
||||
return isLoading ? (
|
||||
<BlueLoading />
|
||||
) : (
|
||||
return (
|
||||
<SafeArea>
|
||||
<ScrollView>
|
||||
<BlueCard>
|
||||
@ -46,8 +39,11 @@ const Licensing = () => {
|
||||
);
|
||||
};
|
||||
|
||||
Licensing.navigationOptions = navigationStyle({
|
||||
title: 'License',
|
||||
Licensing.navigationOptions = navigationStyle({}, options => {
|
||||
return {
|
||||
...options,
|
||||
headerTitle: loc.settings.license,
|
||||
};
|
||||
});
|
||||
|
||||
export default Licensing;
|
Loading…
Reference in New Issue
Block a user