mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-10 05:58:01 -05:00
refactor(#607): [Bhargavi] change the labels in the app profile screen
This commit is contained in:
@@ -11,7 +11,10 @@ export const EditableListItem: React.FC<EditableListItemProps> = (props) => {
|
||||
const [newValue, setNewValue] = useState(props.value);
|
||||
|
||||
return (
|
||||
<ListItem bottomDivider onPress={() => setIsEditing(true)}>
|
||||
<ListItem
|
||||
bottomDivider
|
||||
onPress={() => setIsEditing(true)}
|
||||
style={{ display: props.display }}>
|
||||
<Icon
|
||||
name={props.Icon}
|
||||
type="antdesign"
|
||||
@@ -64,4 +67,5 @@ interface EditableListItemProps {
|
||||
value: string;
|
||||
Icon: string;
|
||||
onEdit: (newValue: string) => void;
|
||||
display?: 'none' | 'flex';
|
||||
}
|
||||
|
||||
@@ -186,7 +186,7 @@
|
||||
"home": "المنزل",
|
||||
"scan": "مسح",
|
||||
"request": "طلب",
|
||||
"profile": "الملف الشخصي"
|
||||
"settings": "إعدادات"
|
||||
},
|
||||
"PasscodeScreen": {
|
||||
"header": "تعيين رمز مرور لتأمين تطبيقك",
|
||||
@@ -201,7 +201,7 @@
|
||||
"name": "اسم",
|
||||
"vcLabel": "تسمية VC",
|
||||
"language": "اللغة",
|
||||
"bioUnlock": "فتح المقاييس الحيوية",
|
||||
"bioUnlock":"افتح مع القياسات الحيوية",
|
||||
"authFactorUnlock": "إلغاء تأمين عامل المصادقة",
|
||||
"credits": "القانونية",
|
||||
"logout": "تسجيل الخروج",
|
||||
|
||||
@@ -186,7 +186,7 @@
|
||||
"home": "Home",
|
||||
"scan": "Scan",
|
||||
"request": "Request",
|
||||
"profile": "Profile"
|
||||
"settings": "Settings"
|
||||
},
|
||||
"PasscodeScreen": {
|
||||
"header": "Set a passcode to secure your application",
|
||||
@@ -201,7 +201,7 @@
|
||||
"name": "Name",
|
||||
"vcLabel": "VC Label",
|
||||
"language": "Language",
|
||||
"bioUnlock": "Biometric unlock",
|
||||
"bioUnlock": "Unlock with biometrics",
|
||||
"authFactorUnlock": "Unlock auth factor",
|
||||
"credits": "Credits and legal notices",
|
||||
"logout": "Log-out",
|
||||
|
||||
@@ -176,7 +176,7 @@
|
||||
"home": "Home",
|
||||
"scan": "Scan",
|
||||
"request": "Request",
|
||||
"profile": "Profile"
|
||||
"settings": "mga setting"
|
||||
},
|
||||
"PasscodeScreen": {
|
||||
"header": "Magtakda ng passcode upang masigurado ang iyong aplikasyon",
|
||||
@@ -191,7 +191,7 @@
|
||||
"name": "Pangalan",
|
||||
"vcLabel": "Panawag sa VC",
|
||||
"language": "Wika",
|
||||
"bioUnlock": "Pagbukas gamit Biometric",
|
||||
"bioUnlock": "I-unlock gamit ang biometrics",
|
||||
"authFactorUnlock": "Pagbukas ng auth factor",
|
||||
"credits": "Mga kredito at legal na abiso",
|
||||
"logout": "Mag log-out",
|
||||
|
||||
@@ -186,7 +186,7 @@
|
||||
"home": "घर",
|
||||
"scan": "स्कैन",
|
||||
"request": "अनुरोध",
|
||||
"profile": "प्रोफाइल"
|
||||
"settings": "सेटिंग्स"
|
||||
},
|
||||
"PasscodeScreen": {
|
||||
"header": "अपना आवेदन सुरक्षित करने के लिए पासकोड सेट करें",
|
||||
@@ -201,7 +201,7 @@
|
||||
"name": "नाम",
|
||||
"vcLabel": "वीसी लेबल",
|
||||
"language": "भाषा",
|
||||
"bioUnlock": "बायोमेट्रिक अनलॉक",
|
||||
"bioUnlock": "बायोमेट्रिक्स से अनलॉक करें",
|
||||
"authFactorUnlock": "अनलॉक ऑथ फैक्टर",
|
||||
"credits": "क्रेडिट और कानूनी नोटिस",
|
||||
"logout": "लॉग आउट",
|
||||
|
||||
@@ -186,7 +186,7 @@
|
||||
"home": "ಲೇಔಟ್",
|
||||
"scan": "ಮನೆ",
|
||||
"request": "ವಿನಂತಿ",
|
||||
"profile": "ಪ್ರೊಫೈಲ್"
|
||||
"settings": "ಸೆಟ್ಟಿಂಗ್ಗಳು"
|
||||
},
|
||||
"PasscodeScreen": {
|
||||
"header": "ನಿಮ್ಮ ಅಪ್ಲಿಕೇಶನ್ ಅನ್ನು ಸುರಕ್ಷಿತವಾಗಿರಿಸಲು ಪಾಸ್ಕೋಡ್ ಅನ್ನು ಹೊಂದಿಸಿ",
|
||||
@@ -201,7 +201,7 @@
|
||||
"name": "ಹೆಸರು",
|
||||
"vcLabel": "VC ಲೇಬಲ್",
|
||||
"language": "ಭಾಷೆ",
|
||||
"bioUnlock": "ಬಯೋಮೆಟ್ರಿಕ್ ಅನ್ಲಾಕ್",
|
||||
"bioUnlock": "ಬಯೋಮೆಟ್ರಿಕ್ಗಳೊಂದಿಗೆ ಅನ್ಲಾಕ್ ಮಾಡಿ",
|
||||
"authFactorUnlock": "ಅನ್ಲಾಕ್ ದೃಢೀಕರಣ ಅಂಶ",
|
||||
"credits": "ಕ್ರೆಡಿಟ್ಸ್ ಮತ್ತು ಲೀಗಲ್ ನೋಟಿಸ್",
|
||||
"logout": "ಲಾಗ್-ಔಟ್",
|
||||
|
||||
@@ -186,7 +186,7 @@
|
||||
"home": "வீடு",
|
||||
"scan": "ஸ்கேன்",
|
||||
"request": "கோரிக்கை",
|
||||
"profile": "சுயவிவரம்"
|
||||
"settings": "செட்டிங்ஸ்"
|
||||
},
|
||||
"PasscodeScreen": {
|
||||
"header": "உங்கள் விண்ணப்பத்தைப் பாதுகாக்க கடவுக்குறியீட்டை அமைக்கவும்",
|
||||
@@ -201,7 +201,7 @@
|
||||
"name": "பெயர்",
|
||||
"vcLabel": "VC லேபிள்",
|
||||
"language": "மொழி",
|
||||
"bioUnlock": "பயோமெட்ரிக் அன்லாக்",
|
||||
"bioUnlock": "பயோமெட்ரிக்ஸ் மூலம் திறக்கவும்",
|
||||
"authFactorUnlock": "அங்கீகார காரணியைத் திற",
|
||||
"credits": "வரவுகள் மற்றும் சட்ட அறிவிப்புகள்",
|
||||
"logout": "வெளியேறு",
|
||||
|
||||
@@ -10,8 +10,8 @@ const model = createModel(
|
||||
serviceRefs: {} as AppServices,
|
||||
name: '',
|
||||
vcLabel: {
|
||||
singular: 'ID',
|
||||
plural: 'IDs',
|
||||
singular: 'Card',
|
||||
plural: 'Cards',
|
||||
} as VCLabel,
|
||||
isBiometricUnlockEnabled: false,
|
||||
},
|
||||
|
||||
@@ -38,12 +38,12 @@ const request: TabScreen = {
|
||||
headerShown: false,
|
||||
},
|
||||
};
|
||||
const profile: TabScreen = {
|
||||
name: 'Profile',
|
||||
const settings: TabScreen = {
|
||||
name: 'Settings',
|
||||
component: ProfileScreen,
|
||||
icon: 'person',
|
||||
icon: 'settings',
|
||||
options: {
|
||||
title: i18n.t('MainLayout:profile'),
|
||||
title: i18n.t('MainLayout:Settings'),
|
||||
},
|
||||
};
|
||||
|
||||
@@ -55,7 +55,7 @@ if (Platform.OS !== 'ios' || isGoogleNearbyEnabled) {
|
||||
mainRoutes.push(request);
|
||||
}
|
||||
|
||||
mainRoutes.push(profile);
|
||||
mainRoutes.push(settings);
|
||||
|
||||
export type MainBottomTabParamList = {
|
||||
Home: {
|
||||
@@ -63,7 +63,7 @@ export type MainBottomTabParamList = {
|
||||
};
|
||||
Scan: undefined;
|
||||
Request: undefined;
|
||||
Profile: undefined;
|
||||
Settings: undefined;
|
||||
};
|
||||
|
||||
export interface TabScreen {
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
"home": "Home",
|
||||
"scan": "Scan",
|
||||
"request": "Request",
|
||||
"profile": "Profile"
|
||||
"settings": "Settings"
|
||||
}
|
||||
@@ -46,7 +46,10 @@ export const Credits: React.FC<CreditsProps> = (props) => {
|
||||
};
|
||||
|
||||
return (
|
||||
<ListItem bottomDivider onPress={() => setIsViewing(true)}>
|
||||
<ListItem
|
||||
bottomDivider
|
||||
onPress={() => setIsViewing(true)}
|
||||
style={{ display: 'none' }}>
|
||||
<Icon
|
||||
name="filetext1"
|
||||
type="antdesign"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "Name",
|
||||
"vcLabel": "VC Label",
|
||||
"language": "Language",
|
||||
"bioUnlock": "Biometric unlock",
|
||||
"bioUnlock": "Unlock with biometrics",
|
||||
"authFactorUnlock": "Unlock auth factor",
|
||||
"credits": "Credits and legal notices",
|
||||
"logout": "Log-out",
|
||||
|
||||
@@ -83,6 +83,7 @@ export const ProfileScreen: React.FC<MainRouteProps> = (props) => {
|
||||
value={controller.vcLabel.singular}
|
||||
onEdit={controller.UPDATE_VC_LABEL}
|
||||
Icon="star"
|
||||
display="none"
|
||||
/>
|
||||
<LanguageSetting />
|
||||
<Revoke label={t('revokeLabel')} Icon="rotate-left" />
|
||||
@@ -106,7 +107,7 @@ export const ProfileScreen: React.FC<MainRouteProps> = (props) => {
|
||||
color={Theme.Colors.profileValue}
|
||||
/>
|
||||
</ListItem>
|
||||
<ListItem bottomDivider disabled>
|
||||
<ListItem bottomDivider disabled style={{ display: 'none' }}>
|
||||
<Icon
|
||||
name="unlock"
|
||||
size={20}
|
||||
|
||||
@@ -20,7 +20,10 @@ export const Revoke: React.FC<RevokeScreenProps> = (props) => {
|
||||
const { t } = useTranslation('ProfileScreen');
|
||||
|
||||
return (
|
||||
<ListItem bottomDivider onPress={() => controller.setAuthenticating(true)}>
|
||||
<ListItem
|
||||
bottomDivider
|
||||
onPress={() => controller.setAuthenticating(true)}
|
||||
style={{ display: 'none' }}>
|
||||
<Icon
|
||||
name={props.Icon}
|
||||
type="font-awesome"
|
||||
|
||||
Reference in New Issue
Block a user