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}

+
+ ))}
)