Skip to content
Permalink
6e9eb6307c
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
26 lines (22 sloc) 796 Bytes
import React from 'react';
var InfoField = function stateLessField(props){
return(
<div className="characteristics">
<h4 style={{fontSize: '22px'}}>{props.name}</h4>
<h4>Birth Year: {props.birth_year}</h4>
<h4>Gender: {props.gender}</h4>
<h4>Eye Color: {props.eye_color}</h4>
<h4>Hair Color: {props.hair_color}</h4>
<h4>Height(cm): {props.height}</h4>
<h4>Weight(kg): {props.mass}</h4>
<h4 style={urlStyle}>API URL: {props.url}</h4>
</div>
);
}
const urlStyle = {
fontFamily: 'PT Sans, Helvetica, Arial, sans-serif',
fontSize: '16px',
lineHeight: '150px',
color: '#777'
}
export default InfoField;