-
props.onDismis()}>
-
-
-
-
- {gamenight?.name}
-
-
- When: {moment(gamenight?.datetime).format('LL HH:mm')}
-
-
-
-
- {join_or_leave_button}
-
- )
-}
-
-export default Gamenight
diff --git a/frontend/src/components/Gamenights.jsx b/frontend/src/components/Gamenights.jsx
deleted file mode 100644
index a86903c..0000000
--- a/frontend/src/components/Gamenights.jsx
+++ /dev/null
@@ -1,74 +0,0 @@
-import * as React from 'react';
-import List from '@mui/material/List';
-import ListItem from '@mui/material/ListItem';
-import ListItemAvatar from '@mui/material/ListItemAvatar';
-import ListItemText from '@mui/material/ListItemText';
-import Avatar from '@mui/material/Avatar';
-import IconButton from '@mui/material/IconButton';
-import GamesIcon from '@mui/icons-material/Games';
-import DeleteIcon from '@mui/icons-material/Delete';
-
-import AddGameNight from './AddGameNight';
-import {delete_gamenight, unpack_api_result} from '../api/Api';
-
-function Gamenights(props) {
- const [dense, setDense] = React.useState(false);
-
- const DeleteGamenight = (game_id) => {
- if (props.user !== null) {
- const input = { game_id: game_id };
- unpack_api_result(delete_gamenight(input, props.user.jwt), props.setFlash)
- .then(() => props.refetchGamenights());
- }
- }
-
- let gamenights = props.gamenights.map(g => {
- let secondaryAction;
- if(props.user.id === g.owner_id || props.user.role === 'Admin') {
- secondaryAction = (
-