add image connection to database

This commit is contained in:
luisa.bellitto 2025-06-27 13:55:08 +02:00
parent 431bf8de86
commit e0d967e4f3
6 changed files with 67 additions and 371 deletions

View file

@ -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>
);