mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 13:38:01 -05:00
fix(#395): [Vijay] add the limitation to VC Tag length in the Rename Option
This commit is contained in:
@@ -21,6 +21,7 @@ export const TextEditOverlay: React.FC<EditOverlayProps> = (props) => {
|
||||
<Input
|
||||
autoFocus
|
||||
value={value}
|
||||
maxLength={props.maxLength}
|
||||
selectionColor={Theme.Colors.Cursor}
|
||||
onChangeText={setValue}
|
||||
/>
|
||||
@@ -55,4 +56,5 @@ interface EditOverlayProps {
|
||||
value: string;
|
||||
onSave: (value: string) => void;
|
||||
onDismiss: () => void;
|
||||
maxLength?: number | undefined;
|
||||
}
|
||||
|
||||
@@ -69,6 +69,7 @@ export const ViewVcModal: React.FC<ViewVcModalProps> = (props) => {
|
||||
isVisible={controller.isEditingTag}
|
||||
label={t('editTag')}
|
||||
value={controller.vc.tag}
|
||||
maxLength={12}
|
||||
onDismiss={controller.DISMISS}
|
||||
onSave={controller.SAVE_TAG}
|
||||
/>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { View } from 'react-native';
|
||||
import { Platform, View } from 'react-native';
|
||||
import { getVersion } from 'react-native-device-info';
|
||||
import { Icon, ListItem, Switch } from 'react-native-elements';
|
||||
import { Column, Text } from '../../components/ui';
|
||||
@@ -107,7 +107,10 @@ export const ProfileScreen: React.FC<MainRouteProps> = (props) => {
|
||||
onValueChange={controller.useBiometrics}
|
||||
trackColor={{
|
||||
false: Theme.Colors.switchTrackFalse,
|
||||
true: Theme.Colors.switchTrackTrue,
|
||||
true:
|
||||
Platform.OS == 'ios'
|
||||
? Theme.Colors.switchHead
|
||||
: Theme.Colors.switchTrackTrue,
|
||||
}}
|
||||
color={Theme.Colors.switchHead}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user