forked from Roflin/gamenight
Some Cleaup.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import * as React from 'react';
|
||||
|
||||
function Gamenight(props) {
|
||||
console.log(props.gamenight);
|
||||
|
||||
let games = props.gamenight.game_list.map(g =>
|
||||
(
|
||||
|
||||
@@ -36,7 +36,9 @@ function Gamenights(props) {
|
||||
<li onClick={(e) => props.onSelectGamenight(g)}>
|
||||
<span>{g.name}</span>
|
||||
{(props.user.id === g.owner_id || props.user.role === "Admin") &&
|
||||
<button onClick={() =>DeleteGameNight(g.id, g.owner)}>x</button>
|
||||
<button onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
DeleteGameNight(g.id, g.owner)}}>x</button>
|
||||
}
|
||||
</li>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user