get user from database

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

View file

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

View file

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

View file

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

View file

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