PR review fix- Consistent UI

This commit is contained in:
dhivya17
2023-03-21 15:45:31 +05:30
parent c3d01a9107
commit bd26380672

View File

@@ -26,6 +26,10 @@ export const ScanScreen: React.FC = () => {
})();
}, [isBluetoothOn]);
const openSettings = () => {
Linking.openSettings();
};
function noShareableVcText() {
return (
<Text align="center" color={Theme.Colors.errorMessage} margin="0 10">
@@ -45,14 +49,15 @@ export const ScanScreen: React.FC = () => {
function allowBluetoothPermissionComponent() {
return (
<Column padding="24" fill align="space-between">
<Text align="center" margin="0 16" color={Theme.Colors.errorMessage}>
{t('enableBluetoothMessage')}
</Text>
<Centered fill>
<Text align="center" color={Theme.Colors.errorMessage}>
{t('enableBluetoothMessage')}
</Text>
</Centered>
<Button
title={t('enableBluetoothButtonText')}
onPress={() => {
Linking.openSettings();
}}></Button>
onPress={openSettings}></Button>
</Column>
);
}
@@ -94,13 +99,13 @@ export const ScanScreen: React.FC = () => {
<Text align="center">{t('header')}</Text>
{controller.isLocationDisabled || controller.isLocationDenied ? (
<Column align="space-between">
<Text
align="center"
margin="16 0"
color={Theme.Colors.errorMessage}>
{controller.locationError.message}
</Text>
<Column padding="24" fill align="space-between">
<Centered fill>
<Text align="center" color={Theme.Colors.errorMessage}>
{controller.locationError.message}
</Text>
</Centered>
<Button
title={controller.locationError.button}
onPress={controller.LOCATION_REQUEST}