mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-10 14:07:59 -05:00
PR review fix- Consistent UI
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user