New source found from dndbeyond.com
This commit is contained in:
+7
-3
@@ -15,7 +15,7 @@ export default class VehicleBlockHeader extends React.PureComponent<Props> {
|
||||
}
|
||||
|
||||
let size: string = sizeName !== null ? sizeName : "";
|
||||
let type: string = typeName !== null ? typeName.toLowerCase() : "";
|
||||
let type: string = typeName !== null ? typeName : "";
|
||||
|
||||
return [size, type].join(" ").trim();
|
||||
};
|
||||
@@ -65,14 +65,18 @@ export default class VehicleBlockHeader extends React.PureComponent<Props> {
|
||||
|
||||
const typeInfo = this.renderTypeInfo();
|
||||
const dimensions = this.renderDimensions();
|
||||
const showMeta =
|
||||
displayType !==
|
||||
Constants.VehicleConfigurationDisplayTypeEnum.SPELLJAMMER &&
|
||||
displayType !==
|
||||
Constants.VehicleConfigurationDisplayTypeEnum.ELEMENTAL_AIRSHIP;
|
||||
|
||||
return (
|
||||
<div className="ct-vehicle-block__header">
|
||||
<div className="ct-vehicle-block__name">
|
||||
{name !== null ? name : ""}
|
||||
</div>
|
||||
{displayType !==
|
||||
Constants.VehicleConfigurationDisplayTypeEnum.SPELLJAMMER && (
|
||||
{showMeta && (
|
||||
<div className="ct-vehicle-block__meta">
|
||||
{typeInfo} {dimensions}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user