diff --git a/src/app/pages/ShipyardPage.jsx b/src/app/pages/ShipyardPage.jsx index f4893f30..d561bee0 100755 --- a/src/app/pages/ShipyardPage.jsx +++ b/src/app/pages/ShipyardPage.jsx @@ -89,6 +89,11 @@ export default class ShipyardPage extends Page { }; } + _highlightShip(shipId, event) { + event.stopPropagation(); + this.setState({ shipId }); + } + /** * Update state with the specified sort predicates * @param {String} shipPredicate Sort predicate - property name @@ -118,7 +123,14 @@ export default class ShipyardPage extends Page { * @return {React.Component} Table Row */ _shipRowElement(s, translate, u, fInt, fRound) { - return + let noTouch = this.context.noTouch; + + return {s.manufacturer} {translate(SizeMap[s.class])} {s.agility} @@ -154,7 +166,7 @@ export default class ShipyardPage extends Page { * @return {React.Component} The page contents */ renderPage() { - let { sizeRatio, language, termtip } = this.context; + let { sizeRatio, language, termtip, noTouch } = this.context; let { translate, formats, units } = language; let hide = this.context.tooltip.bind(null, null); let fInt = formats.int; @@ -209,29 +221,34 @@ export default class ShipyardPage extends Page { for (let s of shipSummaries) { detailRows[i] = this._shipRowElement(s, translate, units, fInt, fRound); - shipRows[i] = {s.name}; + shipRows[i] = ( + + {s.name} + + ); i++; } return (
-
- Show: manufacturer, size, maneuverability, base stats, max stats, hardpoints, internal slots, hull mass, mass lock factor, cost -
- -
- +
+
- + {shipRows}
{translate('ship')}
- +
@@ -272,7 +289,7 @@ export default class ShipyardPage extends Page { - + {detailRows}
{translate('manufacturer')}8