Added Profile
Updated Backend
This commit is contained in:
Marces Zastrow
2025-01-08 12:07:27 +01:00
parent 1cbe8b9d94
commit 2091ce9e0f
10 changed files with 526 additions and 14 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import React, { useContext, useEffect, useState } from 'react';
import { useNavigate, Link } from 'react-router-dom';
import axios from 'axios';
import { UserContext } from '../context/UserContext';
import { UserContext} from '../context/UserContext';
import './home.css';
function Home({ isLoggedIn, setIsLoggedIn }) {
@@ -27,7 +27,7 @@ function Home({ isLoggedIn, setIsLoggedIn }) {
return (
<div className="container">
<h2>Welcome to the Site</h2>
<h2>Welcome to DND-Master</h2>
{!isLoggedIn ? (
<div className="button-group">
<button className="btn" onClick={() => navigate('/login')}>Login</button>