diff --git a/backend/database.db b/backend/database.db index 743abed..0d76e02 100644 Binary files a/backend/database.db and b/backend/database.db differ diff --git a/frontend/src/pages/games.jsx b/frontend/src/pages/games.jsx index c24dc77..591896d 100644 --- a/frontend/src/pages/games.jsx +++ b/frontend/src/pages/games.jsx @@ -65,7 +65,7 @@ const GamesPage = () => { {/* CharName, Health and Mana Bars */} {character.CharName} - + Health @@ -89,7 +89,9 @@ const GamesPage = () => { {/* Character Info Section */} Description - {character.description} + + {character.description} + {/* Inventory */} diff --git a/frontend/src/pages/profile.jsx b/frontend/src/pages/profile.jsx index 80691dd..489acbf 100644 --- a/frontend/src/pages/profile.jsx +++ b/frontend/src/pages/profile.jsx @@ -1,10 +1,11 @@ import React, { useState, useEffect, useContext } from 'react'; +import { Link } from 'react-router-dom'; import { UserContext } from '../context/UserContext'; import axios from 'axios'; import { Box, Typography, Grid2, Card, CardContent, CardMedia } from '@mui/material'; import defaultCharacterImage from '../assets/default-character.png'; -function Profile() { +const Profile = () => { const { userId, username } = useContext(UserContext); const [characters, setCharacters] = useState([]); @@ -26,7 +27,6 @@ function Profile() { return ( - {/* Username on top */} Benutzerprofil: {username} @@ -37,31 +37,33 @@ function Profile() { {characters.map((character) => ( - - - - - - {character.CharName} - - - Race: {character.Race} - - - Age: {character.Age} - - - + + + + + + + {character.CharName} + + + Race: {character.Race} + + + Age: {character.Age} + + + + ))} ); -} +}; export default Profile; \ No newline at end of file