Files
optolith-client/js/views/profile/SheetHeaderAttribute.js
T
Lukas Obermann 0602f421ba Cleaned up SCSS and character sheet print
- 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
2016-12-26 16:16:49 +13:00

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>
);
}
}