Skip to content

Commit

Permalink
fix: accounts for other status
Browse files Browse the repository at this point in the history
  • Loading branch information
theClarkSell committed Oct 19, 2022
1 parent fe8625d commit 149aea9
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/routes/my/submissions/_components/submission.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,24 @@
</p>
<p class="mt-2 flex items-start text-sm text-gray-500">
{#if ['WITHDREW', 'CANCELLED'].includes(activity.status)}
<Ban classes="mr-1.5 h-5 w-5" />
<div class="flex items-center">
<Ban classes="mr-1.5 h-5 w-5" />
<span>{activity.status}</span>
</div>
{:else if activity.status === 'ACCEPTED'}
<span
class="mr-1.5 flex h-5 w-5 items-center justify-center rounded-full bg-green-400 ring-8 ring-white">
<CheckFull />
</span>
<span>{activity.status}</span>
{:else}
<Warning classes="mr-1.5 h-5 w-5" />
<div>
<div class="flex items-center">
<Warning classes="text-yellow-500 mr-1.5 h-5 w-5" />
<span>PENDING REVIEW</span>
</div>
</div>
{/if}
{activity.status}
</p>
</div>
</div>
Expand Down

0 comments on commit 149aea9

Please sign in to comment.