Skip to content

Commit

Permalink
Add Allergies column to users table in users.astro
Browse files Browse the repository at this point in the history
  • Loading branch information
taciturnaxolotl committed Apr 29, 2024
1 parent 7e72fa4 commit aab2982
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/users.astro
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ let users = await db.select().from(User).where(like(User.team, session.team));
<tr>
<th>Name</th>
<th>Email</th>
<th>Allergies</th>
<th>Image</th>
<th>Role</th>
{
Expand All @@ -114,10 +115,11 @@ let users = await db.select().from(User).where(like(User.team, session.team));
</thead>
<tbody>
{
users.map(({ userId, name, email, image, role }) => (
users.map(({ userId, name, email, image, role, allergies }) => (
<tr>
<td>{name}</td>
<td>{email || "N/A"}</td>
<td>{allergies}</td>
<td>
<img src=`${image}` alt="" class="profile-pic"/>
</td>
Expand Down

0 comments on commit aab2982

Please sign in to comment.