mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-06 15:18:48 +00:00
get user from database
This commit is contained in:
parent
c3695b240f
commit
0c0c8f382f
4 changed files with 3 additions and 6 deletions
|
@ -39,7 +39,6 @@ function App() {
|
|||
</div>
|
||||
</Router>
|
||||
</Auth>
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 || "");
|
||||
|
|
|
@ -70,6 +70,7 @@ function Profile() {
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
return (
|
||||
<StyledEngineProvider injectFirst>
|
||||
<div className="profile-display">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue