- Normalized many SCSS files as deep as possible - Fixed print css to display all 6 pages - Fixed sheet header to match original sheet header - Fixed issue with range property for ranged items
26 lines
544 B
JavaScript
26 lines
544 B
JavaScript
import classNames from 'classnames';
|
|
import React, { Component, PropTypes } from 'react';
|
|
|
|
export default class SheetHeader extends Component {
|
|
|
|
static propTypes = {
|
|
id: PropTypes.string.isRequired,
|
|
label: PropTypes.string.isRequired,
|
|
value: PropTypes.number.isRequired,
|
|
};
|
|
|
|
render() {
|
|
|
|
const { id, label, value } = this.props;
|
|
|
|
const className = classNames('sheet-attribute', id);
|
|
|
|
return (
|
|
<div className={className}>
|
|
<span className="label">{label}</span>
|
|
<span className="value">{value}</span>
|
|
</div>
|
|
);
|
|
}
|
|
}
|