Skip to content

Commit

Permalink
fix: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
JaneMoroz committed Sep 7, 2023
1 parent 6ec6fae commit 62d7c77
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions src/app/my-team/components/TeamRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ import { TeamMember } from "./fixtures/MyTeam";
import { Button } from "@/components";

interface TeamRowProps {
teamMemeber: TeamMember;
teamMember: TeamMember;
currentUserId: string;
}

function TeamRow({ teamMemeber, currentUserId }: TeamRowProps) {
function TeamRow({ teamMember, currentUserId }: TeamRowProps) {
return (
<tr>
<td className="text-black">{teamMemeber.name}</td>
<td>{teamMemeber.discordId}</td>
<td className="text-black">{teamMember.name}</td>
<td>{teamMember.discordId}</td>
<td>
<div className="flex items-center justify-between">
{teamMemeber.averageHour}
{teamMemeber.id === currentUserId && (
{teamMember.averageHour}
{teamMember.id === currentUserId && (
<Button
title={"edit"}
customClassName="pl-2 pr-1 h-8 p-0 min-h-full text-sm font-semibold text-black bg-white border-transparent"
Expand All @@ -25,10 +25,10 @@ function TeamRow({ teamMemeber, currentUserId }: TeamRowProps) {
)}
</div>
</td>
<td>{teamMemeber.location}</td>
<td>{teamMemeber.timeZone}</td>
<td>{teamMemeber.email}</td>
<td>{teamMemeber.position}</td>
<td>{teamMember.location}</td>
<td>{teamMember.timeZone}</td>
<td>{teamMember.email}</td>
<td>{teamMember.position}</td>
</tr>
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/app/my-team/components/TeamTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ function TeamTable() {
</thead>
<tbody className="text-base font-medium text-neutral">
{/* rows */}
{teamMembers.map((teamMemeber) => (
{teamMembers.map((teamMember) => (
<TeamRow
key={teamMemeber.id}
teamMemeber={teamMemeber}
key={teamMember.id}
teamMember={teamMember}
currentUserId={currentUserId}
/>
))}
Expand Down

0 comments on commit 62d7c77

Please sign in to comment.