Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ed0e1f7

Browse filesBrowse files
author
Sean Prashad
authored
Show detailed breakdown of problem completion (seanprashad#67)
Users will now see four counts in the first column broken down by: - Total number of questions completed - Total number of easy questions completed - Total number of medium questions completed - Total number of hard questions completed
1 parent 2bda56c commit ed0e1f7
Copy full SHA for ed0e1f7

File tree

Expand file treeCollapse file tree

1 file changed

+18
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+18
-3
lines changed

‎src/components/Table/index.js

Copy file name to clipboardExpand all lines: src/components/Table/index.js
+18-3Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,25 +87,40 @@ const Table = () => {
8787
Header: () => {
8888
return (
8989
<span>
90+
<Badge className="" pill>
91+
<span
92+
data-tip={`You've completed ${difficultyCount.Easy +
93+
difficultyCount.Medium +
94+
difficultyCount.Hard}/${totalDifficultyCount.Easy +
95+
totalDifficultyCount.Medium +
96+
totalDifficultyCount.Hard} questions`}
97+
>
98+
Total: {difficultyCount.Easy}/
99+
{totalDifficultyCount.Easy +
100+
totalDifficultyCount.Medium +
101+
totalDifficultyCount.Hard}
102+
</span>
103+
</Badge>
90104
<Badge className="easy" pill>
91105
<span
92106
data-tip={`You've completed ${difficultyCount.Easy}/${totalDifficultyCount.Easy} easy questions`}
93107
>
94-
{difficultyCount.Easy}/{totalDifficultyCount.Easy}
108+
Easy: {difficultyCount.Easy}/{totalDifficultyCount.Easy}
95109
</span>
96110
</Badge>
97111
<Badge className="medium" pill>
98112
<span
99113
data-tip={`You've completed ${difficultyCount.Medium}/${totalDifficultyCount.Medium} medium questions`}
100114
>
101-
{difficultyCount.Medium}/{totalDifficultyCount.Medium}
115+
Medium: {difficultyCount.Medium}/
116+
{totalDifficultyCount.Medium}
102117
</span>
103118
</Badge>
104119
<Badge className="hard" pill>
105120
<span
106121
data-tip={`You've completed ${difficultyCount.Hard}/${totalDifficultyCount.Hard} hard questions`}
107122
>
108-
{difficultyCount.Hard}/{totalDifficultyCount.Hard}
123+
Hard: {difficultyCount.Hard}/{totalDifficultyCount.Hard}
109124
</span>
110125
</Badge>
111126
</span>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.