get user from database

This commit is contained in:
luisa.bellitto 2025-06-27 11:41:32 +02:00 committed by Rudi Regentonne
parent c3695b240f
commit 0c0c8f382f
4 changed files with 3 additions and 6 deletions

View file

@ -39,7 +39,6 @@ function App() {
</div> </div>
</Router> </Router>
</Auth> </Auth>
); );
} }

View file

@ -16,9 +16,6 @@ export default function Username({ username }: { username: string }) {
const isPopoverOpen = Boolean(anchorEl); const isPopoverOpen = Boolean(anchorEl);
const id = isPopoverOpen ? "simple-popover" : undefined; const id = isPopoverOpen ? "simple-popover" : undefined;
useEffect(() => {
console.log("Username component mounted");
}, []);
return ( return (
<> <>
<Popover <Popover

View file

@ -6,8 +6,8 @@ import "./bio.css";
import "../styles/colors.css"; import "../styles/colors.css";
import IconButton from "@mui/material/IconButton"; import IconButton from "@mui/material/IconButton";
import EditSquareIcon from "@mui/icons-material/EditSquare"; import EditSquareIcon from "@mui/icons-material/EditSquare";
import ButtonPrimary from "./ButtonRotkehlchen"; import ButtonPrimary from "../ButtonRotkehlchen";
import api from "../api/axios"; import api from "../../api/axios";
export default function BioTextField({ ownAccount, bioText, setBio } : { ownAccount: boolean, bioText: string | undefined, setBio: (bio: string) => void }) { export default function BioTextField({ ownAccount, bioText, setBio } : { ownAccount: boolean, bioText: string | undefined, setBio: (bio: string) => void }) {
const [oldBio, setOldbio] = useState<string>(bioText || ""); const [oldBio, setOldbio] = useState<string>(bioText || "");

View file

@ -70,6 +70,7 @@ function Profile() {
} }
}; };
return ( return (
<StyledEngineProvider injectFirst> <StyledEngineProvider injectFirst>
<div className="profile-display"> <div className="profile-display">