mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-07 19:18:51 +00:00
add image connection to database
This commit is contained in:
parent
431bf8de86
commit
e0d967e4f3
6 changed files with 67 additions and 371 deletions
|
@ -12,16 +12,7 @@ import api from "../api/axios";
|
|||
import { useAuth } from "../api/Auth";
|
||||
import { useNavigate, useParams } from "react-router-dom";
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
type UserProfile = {
|
||||
id: string;
|
||||
username: string;
|
||||
bio: string | undefined;
|
||||
profilePictureUrl: string | null;
|
||||
followers: number;
|
||||
following: number;
|
||||
// posts: number;
|
||||
}
|
||||
import { UserProfile } from "../types/UserProfile";
|
||||
|
||||
function Profile() {
|
||||
const { user } = useAuth();
|
||||
|
@ -88,7 +79,7 @@ const setBio = (bio: string) => {
|
|||
</div>
|
||||
<RotkehlchenButton style="primary" label="Follow" type="button" />
|
||||
</div>
|
||||
<QuiltedImageList />
|
||||
{userData && <QuiltedImageList user={userData} />}
|
||||
</div>
|
||||
</StyledEngineProvider>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue