Skip to content

Commit

Permalink
lint cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
venix12 committed Jan 2, 2024
1 parent 5fd6460 commit 6bb71a9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
23 changes: 12 additions & 11 deletions resources/js/contest-judge-results/vote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,20 @@ export default function Vote(props: Props) {
const category = props.contest.scoring_categories.find((x) => x.id === score.contest_scoring_category_id);

return (
<div key={score.id} className='contest-judge-results-scores__row'>
<div className='contest-judge-results-scores__col'>
<div className='contest-judge-entry__description-icon' title={category?.description}>
<i className='fas fa-question-circle' />
</div>
<div key={score.id} className='contest-judge-results-scores__row'>
<div className='contest-judge-results-scores__col'>
<div className='contest-judge-entry__description-icon' title={category?.description}>
<i className='fas fa-question-circle' />
</div>

<span className='u-ellipsis-overflow'>{category?.name}</span>
</div>
<div className='contest-judge-results-scores__col contest-judge-results-scores__col--score'>
{score.value}/{category?.max_value}
<span className='u-ellipsis-overflow'>{category?.name}</span>
</div>
<div className='contest-judge-results-scores__col contest-judge-results-scores__col--score'>
{score.value}/{category?.max_value}
</div>
</div>
</div>
)})}
);
})}
</div>

{props.vote.comment != null && <div className='contest-judge-results-vote__comment'>{props.vote.comment}</div>}
Expand Down
2 changes: 1 addition & 1 deletion resources/js/interfaces/contest-entry-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import ContestJudgeVoteJson, { ContestJudgeVoteJsonForResults } from './contest-

interface ContestEntryJsonAvailableIncludes {
current_user_judge_vote: ContestJudgeVoteJson;
judge_votes: ContestJudgeVoteJson[];
results: {
actual_name: string;
votes: number;
};
judge_votes: ContestJudgeVoteJson[];
user: {
id: number;
username: string;
Expand Down

0 comments on commit 6bb71a9

Please sign in to comment.