Skip to content

Commit

Permalink
Merge pull request #96 from Learn-and-Give/develop
Browse files Browse the repository at this point in the history
Release/v1.4.1
  • Loading branch information
chchaeun authored Sep 22, 2022
2 parents e3ecdd9 + 8e1a9df commit d17bb05
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/challenges/challenge-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ function ChallengeList({ challenges }: Props) {
return (
<div className="grid grid-cols-3 gap-10 sm:flex sm:flex-col">
{challenges?.map((challenge) => (
<div key={challenge.challengeId}>
<>
{challenge.applicationStatus === "ACCEPTED" && (
<Link
href={`/challenges/${challenge.challengeId}`}
key={challenge.challengeId}
>
<div className="col-span-1 flex flex-col gap-3 transition ease-in-out hover:-translate-y-1 duration-300 cursor-pointer">
<div className="flex flex-col col-span-1 gap-3 transition duration-300 ease-in-out cursor-pointer hover:-translate-y-1">
<img
src={challenge.imageUrl}
className="w-96 h-52 object-cover rounded-2xl"
className="object-cover w-96 h-52 rounded-2xl"
/>
<div className="flex justify-between items-center">
<div className="flex items-center justify-between">
<div>
<div className="text-lg font-semibold">
{challenge.title} {challenge.chapter}
Expand All @@ -34,7 +34,7 @@ function ChallengeList({ challenges }: Props) {
</div>
</Link>
)}
</div>
</>
))}
</div>
);
Expand Down

0 comments on commit d17bb05

Please sign in to comment.