mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 15:15:34 +00:00
Fix lint issues
This commit is contained in:
@@ -89,6 +89,11 @@ export default class ShipyardPage extends Page {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Higlight the current ship in the table
|
||||||
|
* @param {String} shipId Ship Id
|
||||||
|
* @param {SyntheticEvent} event Event
|
||||||
|
*/
|
||||||
_highlightShip(shipId, event) {
|
_highlightShip(shipId, event) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
this.setState({ shipId });
|
this.setState({ shipId });
|
||||||
@@ -128,7 +133,7 @@ export default class ShipyardPage extends Page {
|
|||||||
return <tr
|
return <tr
|
||||||
key={s.id}
|
key={s.id}
|
||||||
style={{ height: '1.5em' }}
|
style={{ height: '1.5em' }}
|
||||||
className={cn({highlighted: noTouch && this.state.shipId === s.id})}
|
className={cn({ highlighted: noTouch && this.state.shipId === s.id })}
|
||||||
onMouseEnter={noTouch && this._highlightShip.bind(this, s.id)}
|
onMouseEnter={noTouch && this._highlightShip.bind(this, s.id)}
|
||||||
>
|
>
|
||||||
<td className='le'>{s.manufacturer}</td>
|
<td className='le'>{s.manufacturer}</td>
|
||||||
@@ -225,7 +230,7 @@ export default class ShipyardPage extends Page {
|
|||||||
<tr
|
<tr
|
||||||
key={i}
|
key={i}
|
||||||
style={{ height: '1.5em' }}
|
style={{ height: '1.5em' }}
|
||||||
className={cn({highlighted: noTouch && this.state.shipId === s.id})}
|
className={cn({ highlighted: noTouch && this.state.shipId === s.id })}
|
||||||
onMouseEnter={noTouch && this._highlightShip.bind(this, s.id)}
|
onMouseEnter={noTouch && this._highlightShip.bind(this, s.id)}
|
||||||
>
|
>
|
||||||
<td className='le'><Link href={'/outfit/' + s.id}>{s.name}</Link></td>
|
<td className='le'><Link href={'/outfit/' + s.id}>{s.name}</Link></td>
|
||||||
|
|||||||
Reference in New Issue
Block a user