Add: More progress regarding findstops button
This commit is contained in:
22
src/components/StopSelectButton.js
Normal file
22
src/components/StopSelectButton.js
Normal 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
|
Reference in New Issue
Block a user