update: project module
Build and Release / release (push) Successful in 27s

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-29 16:09:07 +07:00
parent 2e80e45eab
commit 7ff68659ad
10 changed files with 957 additions and 160 deletions
+2 -7
View File
@@ -6,6 +6,7 @@ import { MediaDto } from "@/interface/media"; // Assuming this file will be crea
import { apiGetCurrentUserApplications, apiGetCurrentUserMedia } from "@/service/userService";
import MediaLibrary from "@/components/user-profile/Media";
import { Application } from "@/interface/historian";
import Loading from "@/app/loading";
export default function LibraryPage() {
const [mediaData, setMediaData] = useState<MediaDto | null>(null);
@@ -31,13 +32,7 @@ export default function LibraryPage() {
fetchLibraryContent();
}, []);
if (loading) {
return (
<div className="flex h-[50vh] items-center justify-center">
<div className="h-8 w-8 animate-spin rounded-full border-4 border-blue-500 border-t-transparent"></div>
</div>
);
}
if (loading) return <Loading />;
const hasNoData = (!mediaData?.data || mediaData.data.length === 0) && applications.length === 0;