mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 23:08:07 +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 alert from '../components/Alert';
|
||||||
import Button from '../components/Button';
|
import Button from '../components/Button';
|
||||||
import triggerHapticFeedback, { HapticFeedbackTypes } from '../blue_modules/hapticFeedback';
|
import triggerHapticFeedback, { HapticFeedbackTypes } from '../blue_modules/hapticFeedback';
|
||||||
import SafeArea from '../components/SafeArea';
|
|
||||||
import { NativeStackNavigationProp } from '@react-navigation/native-stack';
|
import { NativeStackNavigationProp } from '@react-navigation/native-stack';
|
||||||
const prompt = require('../helpers/prompt');
|
const prompt = require('../helpers/prompt');
|
||||||
|
|
||||||
|
@ -77,14 +76,12 @@ const PlausibleDeniability: React.FC = () => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return state.isLoading ? (
|
return (
|
||||||
<SafeArea>
|
<ScrollView centerContent={state.isLoading} automaticallyAdjustContentInsets contentInsetAdjustmentBehavior="automatic">
|
||||||
<BlueLoading />
|
{state.isLoading ? (
|
||||||
</SafeArea>
|
<BlueLoading />
|
||||||
) : (
|
) : (
|
||||||
<SafeArea>
|
<BlueCard>
|
||||||
<BlueCard>
|
|
||||||
<ScrollView>
|
|
||||||
<BlueText>{loc.plausibledeniability.help}</BlueText>
|
<BlueText>{loc.plausibledeniability.help}</BlueText>
|
||||||
<BlueText />
|
<BlueText />
|
||||||
<BlueText>{loc.plausibledeniability.help2}</BlueText>
|
<BlueText>{loc.plausibledeniability.help2}</BlueText>
|
||||||
|
@ -94,9 +91,9 @@ const PlausibleDeniability: React.FC = () => {
|
||||||
title={loc.plausibledeniability.create_fake_storage}
|
title={loc.plausibledeniability.create_fake_storage}
|
||||||
onPress={handleOnCreateFakeStorageButtonPressed}
|
onPress={handleOnCreateFakeStorageButtonPressed}
|
||||||
/>
|
/>
|
||||||
</ScrollView>
|
</BlueCard>
|
||||||
</BlueCard>
|
)}
|
||||||
</SafeArea>
|
</ScrollView>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -2,40 +2,37 @@ 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 } from '../../BlueComponents';
|
import { BlueCard, BlueText, BlueSpacing20 } from '../../BlueComponents';
|
||||||
import SafeArea from '../../components/SafeArea';
|
|
||||||
import loc from '../../loc';
|
import loc from '../../loc';
|
||||||
|
|
||||||
const Licensing = () => {
|
const Licensing = () => {
|
||||||
return (
|
return (
|
||||||
<SafeArea>
|
<ScrollView contentInsetAdjustmentBehavior="automatic" automaticallyAdjustContentInsets>
|
||||||
<ScrollView>
|
<BlueCard>
|
||||||
<BlueCard>
|
<BlueText>MIT License</BlueText>
|
||||||
<BlueText>MIT License</BlueText>
|
<BlueSpacing20 />
|
||||||
<BlueSpacing20 />
|
<BlueText>Copyright (c) 2018-2024 BlueWallet developers</BlueText>
|
||||||
<BlueText>Copyright (c) 2018-2024 BlueWallet developers</BlueText>
|
<BlueSpacing20 />
|
||||||
<BlueSpacing20 />
|
<BlueText>
|
||||||
<BlueText>
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
|
||||||
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,
|
||||||
(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
|
||||||
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:
|
||||||
furnished to do so, subject to the following conditions:
|
</BlueText>
|
||||||
</BlueText>
|
<BlueSpacing20 />
|
||||||
<BlueSpacing20 />
|
|
||||||
|
|
||||||
<BlueText>
|
<BlueText>
|
||||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
</BlueText>
|
</BlueText>
|
||||||
<BlueSpacing20 />
|
<BlueSpacing20 />
|
||||||
|
|
||||||
<BlueText>
|
<BlueText>
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
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
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
</BlueText>
|
</BlueText>
|
||||||
</BlueCard>
|
</BlueCard>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
</SafeArea>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -124,7 +124,7 @@ const EncryptStorage = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return isLoading ? (
|
return isLoading ? (
|
||||||
<ScrollView>
|
<ScrollView centerContent>
|
||||||
<BlueLoading />
|
<BlueLoading />
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
) : (
|
) : (
|
||||||
|
|
Loading…
Add table
Reference in a new issue