Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: accounts for other status #1313

Merged
merged 1 commit into from
Oct 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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