From 8114791ab52cd34cfd72458a5a99ca84aa8e394f Mon Sep 17 00:00:00 2001 From: Jirachal Date: Thu, 1 Oct 2026 15:49:57 +0200 Subject: [PATCH] combining mock-frontend with mock-data (Closes #4) --- src/App.tsx | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 1312479..5dcdbf4 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,6 +1,10 @@ import './App.css' +import albumData from './mock/albums.json' +import type { Album } from './types/albums' function App() { + const albums: Album[] = albumData as Album[] + return (
@@ -59,23 +63,15 @@ function App() {
-
-
Image
-

Album title

-

Artist

-
- -
-
Image
-

Album title

-

Artist

-
+ {albums.map((album) => ( +
+
Image
-
-
Image
-

Album title

-

Artist

-
+

{album.title}

+

{album.artist}

+

{album.releaseYear}

+
+ ))}
)