Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
case constants.ATTR_FAMILY_NAME:
attributes.push(createAttributeItem(attribute, 'Family names', 'yoti-icon-profile'));
break;
case constants.ATTR_GIVEN_NAMES:
attributes.push(createAttributeItem(attribute, 'Given names', 'yoti-icon-profile'));
break;
case constants.ATTR_DATE_OF_BIRTH:
attributes.push(createAttributeItem(attribute, 'Date of birth', 'yoti-icon-calendar'));
break;
case constants.ATTR_GENDER:
attributes.push(createAttributeItem(attribute, 'Gender', 'yoti-icon-gender'));
break;
case constants.ATTR_NATIONALITY:
attributes.push(createAttributeItem(attribute, 'Nationality', 'yoti-icon-profile'));
break;
case constants.ATTR_PHONE_NUMBER:
attributes.push(createAttributeItem(attribute, 'Mobile number', 'yoti-icon-phone'));
break;
case constants.ATTR_EMAIL_ADDRESS:
attributes.push(createAttributeItem(attribute, 'Email address', 'yoti-icon-email'));
break;
case constants.ATTR_POSTAL_ADDRESS:
attributes.push(createAttributeItem(attribute, 'Address', 'yoti-icon-address'));
break;
case constants.ATTR_DOCUMENT_DETAILS:
attributes.push(createAttributeItem(attribute, 'Document Details', 'yoti-icon-profile'));
break;
case constants.ATTR_STRUCTURED_POSTAL_ADDRESS:
attributes.push(createAttributeItem(attribute, 'Structured Address', 'yoti-icon-address'));
break;
case constants.ATTR_DOCUMENT_IMAGES:
attributes.push(createAttributeItem(attribute, 'Document Images', 'yoti-icon-profile'));