Skip to content

Commit

Permalink
chore(fe): change blind text color from red to neutral (#2131)
Browse files Browse the repository at this point in the history
  • Loading branch information
B0XERCAT authored Oct 1, 2024
1 parent 536b000 commit 2191e86
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ export const columns: ColumnDef<SubmissionItem>[] = [
cell: ({ row }) => {
return row.original.result === 'Accepted' ? (
<p className="text-green-500">{row.original.result}</p>
) : row.original.result === 'Judging' ? (
<p className="text-gray-300">{row.original.result}</p>
) : row.original.result === 'Judging' ||
row.original.result === 'Blind' ? (
<p className="text-[#9B9B9B]">{row.original.result}</p>
) : (
<p className="text-red-500">{row.original.result}</p>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ export default async function SubmissionDetail({
className={
submission.result === 'Accepted'
? '!text-green-500'
: '!text-red-500'
: submission.result === 'Blind'
? '!text-[#9B9B9B]'
: '!text-red-500'
}
>
{submission.result}
Expand Down Expand Up @@ -97,8 +99,10 @@ export default async function SubmissionDetail({
<TableCell
className={
item.result === 'Accepted'
? 'text-green-500'
: 'text-red-500'
? '!text-green-500'
: submission.result === 'Blind'
? '!text-[#9B9B9B]'
: '!text-red-500'
}
>
{item.result}
Expand Down

0 comments on commit 2191e86

Please sign in to comment.