Cleanup
This commit is contained in:
parent
8f64a65a2a
commit
38bc41e217
1 changed files with 2 additions and 9 deletions
11
src/Cell.js
11
src/Cell.js
|
@ -22,22 +22,15 @@ export default function Cell({x, y, state, dispatch}) {
|
|||
dispatch({
|
||||
type: 'clicked_cell',
|
||||
x,
|
||||
y,
|
||||
e
|
||||
y
|
||||
});
|
||||
}
|
||||
}}
|
||||
onMouseLeave={(e) => {
|
||||
const leftPressed = e.buttons & 0x1;
|
||||
if (leftPressed) {
|
||||
}
|
||||
}}
|
||||
onClick={(e) => {
|
||||
dispatch({
|
||||
type: 'clicked_cell',
|
||||
x,
|
||||
y,
|
||||
e
|
||||
y
|
||||
});
|
||||
}}>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue