Skip to content

Commit

Permalink
chore(fe): edit contest table and list (#2074)
Browse files Browse the repository at this point in the history
* chore(fe): hide clarification

* chore(fe): remove total score on contest table
  • Loading branch information
youznn authored Sep 8, 2024
1 parent 4cb8821 commit d522b22
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 20 deletions.
9 changes: 5 additions & 4 deletions apps/frontend/app/(main)/contest/_components/ContestTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function ContestTabs({ contestId }: { contestId: string }) {
<Link
href={`/contest/${id}` as Route}
className={cn(
'flex w-1/3 justify-center text-lg text-gray-400',
'flex w-1/2 justify-center text-lg text-gray-400',
isCurrentTab('') && 'text-primary'
)}
>
Expand All @@ -29,13 +29,13 @@ export default function ContestTabs({ contestId }: { contestId: string }) {
<Link
href={`/contest/${id}/problem` as Route}
className={cn(
'flex w-1/3 justify-center text-lg text-gray-400',
'flex w-1/2 justify-center text-lg text-gray-400',
isCurrentTab('problem') && 'text-primary'
)}
>
Problem
</Link>
<Link
{/* <Link
href={`/contest/${id}/announcement` as Route}
className={cn(
'flex w-1/3 justify-center text-lg text-gray-400',
Expand All @@ -45,7 +45,7 @@ export default function ContestTabs({ contestId }: { contestId: string }) {
Clarification
</Link>
</div>
{/* <Link
<Link
href={`/contest/${id}/standings` as Route}
className={cn(
'text-lg text-gray-400',
Expand All @@ -54,6 +54,7 @@ export default function ContestTabs({ contestId }: { contestId: string }) {
>
Standings
</Link> */}
</div>
</div>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ export default async function FinishedContestTable({
data={ContestData.data}
columns={columns}
headerStyle={{
title: 'text-left w-2/5 md:w-1/3',
title: 'text-left w-2/5 md:w-1/2',
registered: 'w-1/5 md:w-1/6',
participants: 'w-1/5 md:w-1/6',
totalScore: 'w-1/5 md:w-1/6',
period: 'w-1/5 md:w-1/4'
period: 'w-1/5 md:w-1/3'
}}
linked
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ export const columns: ColumnDef<Contest>[] = [
accessorKey: 'participants',
cell: ({ row }) => row.original.participants
},
{
header: 'Total score',
accessorKey: 'totalScore',
cell: () => '000/000'
},
{
header: 'Period',
accessorKey: 'period',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@ export default async function RegisteredContestTable({
data={data}
columns={columns}
headerStyle={{
title: 'text-left w-2/5 md:w-1/3',
title: 'text-left w-2/5 md:w-1/2',
status: 'w-1/5 md:w-1/6',
participants: 'w-1/5 md:w-1/6',
totalScore: 'w-1/5 md:w-1/6',
period: 'w-1/5 md:w-1/4'
period: 'w-1/5 md:w-1/3'
}}
linked
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ export const columns: ColumnDef<Contest>[] = [
accessorKey: 'participants',
cell: ({ row }) => row.original.participants
},
{
header: 'Total score',
accessorKey: 'totalScore',
cell: () => '000/000'
},
{
header: 'Period',
accessorKey: 'period',
Expand Down

0 comments on commit d522b22

Please sign in to comment.