mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-18 21:35:21 +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 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';
|
||||||
|
@ -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",
|
||||||
|
@ -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;
|
Loading…
Reference in New Issue
Block a user