Skip to content

Commit

Permalink
Change title, Make List component tidier
Browse files Browse the repository at this point in the history
  • Loading branch information
adilk0728 committed Feb 21, 2024
1 parent b45761d commit 4ff6b71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend-mark-alive/mark-alive/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>React App</title>
<title>Mark Alive</title>
</head>
<body>
<div id="root"></div>
Expand Down
7 changes: 4 additions & 3 deletions frontend-mark-alive/mark-alive/src/components/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ export const List = ({ Headers, data }) => {
</tr>
</thead>
<tbody>
{data.map((element, index) => (
{data.map((element) => (
<tr key={element.id}>
<td>{element.id}</td>
<td>{element.url}</td>
{Object.values(element).map((v) => (
<td>{v}</td>
))}
</tr>
))}
</tbody>
Expand Down

0 comments on commit 4ff6b71

Please sign in to comment.