inline style react with true or false
style={ someCondition ? { textAlign:'center', paddingTop: '50%'} : {}}
Source: stackoverflow.com
style={ someCondition ? { textAlign:'center', paddingTop: '50%'} : {}}