merged with latest develop

This commit is contained in:
Monobikash Das
2022-09-16 17:56:00 +05:30
101 changed files with 3612 additions and 439 deletions

View File

@@ -1,8 +1,10 @@
import React from 'react';
import QRCode from 'react-native-qrcode-svg';
import { Button, Centered, Column, Row, Text } from '../../components/ui';
import { Colors } from '../../components/ui/styleUtils';
import { Centered, Button, Row, Column, Text } from '../../components/ui';
import { Theme } from '../../components/ui/styleUtils';
import { MainRouteProps } from '../../routes/main';
import { ReceiveVcModal } from './ReceiveVcModal';
import { MessageOverlay } from '../../components/MessageOverlay';
import { useRequestScreen } from './RequestScreenController';
import { useTranslation } from 'react-i18next';
import { Switch } from 'react-native-elements';
@@ -13,11 +15,14 @@ export const RequestScreen: React.FC = () => {
const controller = useRequestScreen();
return (
<Column fill padding="24" backgroundColor={Colors.LightGrey}>
<Column
fill
padding="24"
backgroundColor={Theme.Colors.lightGreyBackgroundColor}>
<Column>
{controller.isBluetoothDenied ? (
<React.Fragment>
<Text color={Colors.Red} align="center">
<Text color={Theme.Colors.errorMessage} align="center">
{t('bluetoothDenied', { vcLabel: controller.vcLabel.singular })}
</Text>
<Button
@@ -38,7 +43,7 @@ export const RequestScreen: React.FC = () => {
<QRCode
size={200}
value={controller.connectionParams}
backgroundColor={Colors.LightGrey}
backgroundColor={Theme.Colors.QRCodeBackgroundColor}
/>
) : null}
</Centered>