-
Notifications
You must be signed in to change notification settings - Fork 17
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
Added the fts star to the scoreboard #140
Changes from all commits
e1fd1b1
5d10aa8
aae795f
594a4be
7757fc0
fe2d66f
73f1924
dc62d8c
7f444b0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,7 +119,7 @@ export const ScoreboardRow = ({ teamId, hideTasks, optimismLevel }) => { | |
formatPenalty(scoreboardData?.penalty) | ||
} />} | ||
{!hideTasks && scoreboardData?.problemResults.map((result, i) => | ||
<ScoreboardTaskResultLabel problemResult={result} key={i} | ||
<ScoreboardTaskResultLabel problemResult={result} key={i} problemColor={contestData?.problems[i]?.color} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the thing I don't like. Passing too many props from the state in the context that is not suitable. I could understand if this was a specialized component that is extracting data from the store and displaying the data, but when it's used here - I'm not sure how I feel about that. |
||
minScore={contestData?.problems[i]?.minScore} maxScore={contestData?.problems[i]?.maxScore}/> | ||
)} | ||
</ScoreboardRowWrap>; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it really necessary to rename problemResult to r?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't do it. That was before I started pr.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then I guess we will refactor it some time in the future.