mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 15:04:50 +01:00
FIX: Center content
This commit is contained in:
parent
0984602344
commit
4154d4583e
3 changed files with 35 additions and 41 deletions
|
@ -9,7 +9,6 @@ import { BlueStorageContext } from '../blue_modules/storage-context';
|
|||
import alert from '../components/Alert';
|
||||
import Button from '../components/Button';
|
||||
import triggerHapticFeedback, { HapticFeedbackTypes } from '../blue_modules/hapticFeedback';
|
||||
import SafeArea from '../components/SafeArea';
|
||||
import { NativeStackNavigationProp } from '@react-navigation/native-stack';
|
||||
const prompt = require('../helpers/prompt');
|
||||
|
||||
|
@ -77,14 +76,12 @@ const PlausibleDeniability: React.FC = () => {
|
|||
}
|
||||
};
|
||||
|
||||
return state.isLoading ? (
|
||||
<SafeArea>
|
||||
<BlueLoading />
|
||||
</SafeArea>
|
||||
) : (
|
||||
<SafeArea>
|
||||
<BlueCard>
|
||||
<ScrollView>
|
||||
return (
|
||||
<ScrollView centerContent={state.isLoading} automaticallyAdjustContentInsets contentInsetAdjustmentBehavior="automatic">
|
||||
{state.isLoading ? (
|
||||
<BlueLoading />
|
||||
) : (
|
||||
<BlueCard>
|
||||
<BlueText>{loc.plausibledeniability.help}</BlueText>
|
||||
<BlueText />
|
||||
<BlueText>{loc.plausibledeniability.help2}</BlueText>
|
||||
|
@ -94,9 +91,9 @@ const PlausibleDeniability: React.FC = () => {
|
|||
title={loc.plausibledeniability.create_fake_storage}
|
||||
onPress={handleOnCreateFakeStorageButtonPressed}
|
||||
/>
|
||||
</ScrollView>
|
||||
</BlueCard>
|
||||
</SafeArea>
|
||||
</BlueCard>
|
||||
)}
|
||||
</ScrollView>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
@ -2,40 +2,37 @@ import React from 'react';
|
|||
import { ScrollView } from 'react-native';
|
||||
import navigationStyle from '../../components/navigationStyle';
|
||||
import { BlueCard, BlueText, BlueSpacing20 } from '../../BlueComponents';
|
||||
import SafeArea from '../../components/SafeArea';
|
||||
import loc from '../../loc';
|
||||
|
||||
const Licensing = () => {
|
||||
return (
|
||||
<SafeArea>
|
||||
<ScrollView>
|
||||
<BlueCard>
|
||||
<BlueText>MIT License</BlueText>
|
||||
<BlueSpacing20 />
|
||||
<BlueText>Copyright (c) 2018-2024 BlueWallet developers</BlueText>
|
||||
<BlueSpacing20 />
|
||||
<BlueText>
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
|
||||
(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,
|
||||
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
</BlueText>
|
||||
<BlueSpacing20 />
|
||||
<ScrollView contentInsetAdjustmentBehavior="automatic" automaticallyAdjustContentInsets>
|
||||
<BlueCard>
|
||||
<BlueText>MIT License</BlueText>
|
||||
<BlueSpacing20 />
|
||||
<BlueText>Copyright (c) 2018-2024 BlueWallet developers</BlueText>
|
||||
<BlueSpacing20 />
|
||||
<BlueText>
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
|
||||
(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,
|
||||
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
</BlueText>
|
||||
<BlueSpacing20 />
|
||||
|
||||
<BlueText>
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
</BlueText>
|
||||
<BlueSpacing20 />
|
||||
<BlueText>
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
</BlueText>
|
||||
<BlueSpacing20 />
|
||||
|
||||
<BlueText>
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
||||
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
</BlueText>
|
||||
</BlueCard>
|
||||
</ScrollView>
|
||||
</SafeArea>
|
||||
<BlueText>
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
</BlueText>
|
||||
</BlueCard>
|
||||
</ScrollView>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ const EncryptStorage = () => {
|
|||
};
|
||||
|
||||
return isLoading ? (
|
||||
<ScrollView>
|
||||
<ScrollView centerContent>
|
||||
<BlueLoading />
|
||||
</ScrollView>
|
||||
) : (
|
||||
|
|
Loading…
Add table
Reference in a new issue