New source found from dndbeyond.com
This commit is contained in:
+7
-2
@@ -4,6 +4,7 @@ interface Props {
|
||||
label: string;
|
||||
value: React.ReactNode;
|
||||
extraValue: React.ReactNode;
|
||||
displayColon?: boolean;
|
||||
}
|
||||
export default class VehicleBlockAttribute extends React.PureComponent<Props> {
|
||||
static defaultProps = {
|
||||
@@ -11,11 +12,15 @@ export default class VehicleBlockAttribute extends React.PureComponent<Props> {
|
||||
};
|
||||
|
||||
render() {
|
||||
const { label, value, extraValue } = this.props;
|
||||
const { label, value, extraValue, displayColon } = this.props;
|
||||
|
||||
const labelDisplay: string = displayColon ? `${label}:` : label;
|
||||
|
||||
return (
|
||||
<div className="ct-vehicle-block__attribute">
|
||||
<span className="ct-vehicle-block__attribute-label">{label}</span>
|
||||
<span className="ct-vehicle-block__attribute-label">
|
||||
{labelDisplay}
|
||||
</span>
|
||||
<span className="ct-vehicle-block__attribute-data">
|
||||
<span className="ct-vehicle-block__attribute-data-value">
|
||||
{value}
|
||||
|
||||
Reference in New Issue
Block a user