mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-06 14:58: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>
|
</div>
|
||||||
</Router>
|
</Router>
|
||||||
</Auth>
|
</Auth>
|
||||||
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 || "");
|
||||||
|
|
|
@ -70,6 +70,7 @@ function Profile() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<StyledEngineProvider injectFirst>
|
<StyledEngineProvider injectFirst>
|
||||||
<div className="profile-display">
|
<div className="profile-display">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue