Add: More progress regarding findstops button

This commit is contained in:
williameriksson126
2020-12-10 09:56:24 +01:00
parent d304b250a2
commit 5c59866dc4
3 changed files with 33 additions and 5 deletions

View File

@ -0,0 +1,22 @@
import React, {Component} from 'react';
import globalData from '../GlobalData';
import Button from './Button.js';
class StopSelectButton extends Component {
selectStop = () => {
globalData.stop = this.props.stop
}
render() {
return (
<>
<Button onClick={[this.selectStop]}>
<span>{this.props.stop.name}</span>
</Button>
</>
);
}
}
// TODO Add css
export default StopSelectButton