Prefer custom styles over strong

This commit is contained in:
Daniel Gasienica 2018-04-24 12:41:32 -04:00
parent 657a2d6149
commit feff820cd4

View file

@ -44,6 +44,9 @@ const styles = {
itemIcon: {
flexShrink: 0,
},
itemFileName: {
fontWeight: 'bold',
} as React.CSSProperties,
itemFileSize: {
display: 'inline-block',
marginTop: 8,
@ -64,7 +67,7 @@ export class DocumentListItem extends React.Component<Props, {}> {
style={styles.itemIcon}
/>
<div style={styles.itemMetadata}>
<strong>{fileName}</strong>
<span style={styles.itemFileName}>{fileName}</span>
<span style={styles.itemFileSize}>
{typeof fileSize === 'number' ? formatFileSize(fileSize) : ''}
</span>