Update frontend/src/App.js
Browse files- frontend/src/App.js +4 -2
frontend/src/App.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import React, { useState, useEffect } from 'react';
|
2 |
import _ from 'lodash';
|
3 |
-
import './
|
4 |
|
5 |
const ScoreBar = ({ score }) => {
|
6 |
const percentage = score <= 1 ? score * 100 : score;
|
@@ -89,7 +89,9 @@ function App() {
|
|
89 |
key={benchmark}
|
90 |
onClick={() => handleSort(benchmark)}
|
91 |
>
|
92 |
-
{benchmark} -
|
|
|
|
|
93 |
</th>
|
94 |
))}
|
95 |
</tr>
|
|
|
1 |
import React, { useState, useEffect } from 'react';
|
2 |
import _ from 'lodash';
|
3 |
+
import './styles.css';
|
4 |
|
5 |
const ScoreBar = ({ score }) => {
|
6 |
const percentage = score <= 1 ? score * 100 : score;
|
|
|
89 |
key={benchmark}
|
90 |
onClick={() => handleSort(benchmark)}
|
91 |
>
|
92 |
+
{benchmark} - {sortConfig.key === benchmark && (
|
93 |
+
sortConfig.direction === 'desc' ? '↓' : '↑'
|
94 |
+
)}
|
95 |
</th>
|
96 |
))}
|
97 |
</tr>
|