Skip to content

Commit

Permalink
Merge pull request #54 from fastcampus-711/develop
Browse files Browse the repository at this point in the history
feat: Auth - map 오류 수정
  • Loading branch information
alreadyme24 authored Jun 3, 2024
2 parents dfce4d6 + c731508 commit 3c97948
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/AuthContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ export default function AuthContent() {
<div className="flex flex-col gap-2 text-sm">
<span className="inline-flex gap-2">
{regularPhone[0].map((item, index) => (
<button className={`px-4 py-2.5 rounded-lg border border-grey_100 ${btnClicked === index ? "bg-main_color text-grey_50" : "bg-grey_25"}`}
<button key={`btn_${index}`} className={`px-4 py-2.5 rounded-lg border border-grey_100 ${btnClicked === index ? "bg-main_color text-grey_50" : "bg-grey_25"}`}
onClick={() => setBtnClicked(index)}>{item}</button>
))}
</span>
<span className="inline-flex gap-2">
{regularPhone[1].map((item, index) => (
<button className={`px-4 py-2.5 rounded-lg border border-grey_100 ${btnClicked === index + 3? "bg-main_color text-grey_50" : "bg-grey_25"}`}
<button key={`btn_${index+3}`} className={`px-4 py-2.5 rounded-lg border border-grey_100 ${btnClicked === index + 3? "bg-main_color text-grey_50" : "bg-grey_25"}`}
onClick={() => setBtnClicked(index + 3)}>{item}</button>
))}
</span>
Expand Down

0 comments on commit 3c97948

Please sign in to comment.