Update frontend/src/App.js
Browse files- frontend/src/App.js +2 -8
frontend/src/App.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import React, { useState, useEffect } from 'react';
|
|
|
|
| 2 |
import _ from 'lodash';
|
| 3 |
|
| 4 |
const ScoreBar = ({ score }) => {
|
|
@@ -62,13 +63,6 @@ function App() {
|
|
| 62 |
[sortConfig.direction]
|
| 63 |
);
|
| 64 |
|
| 65 |
-
const getSortIcon = (key) => {
|
| 66 |
-
if (sortConfig.key === key) {
|
| 67 |
-
return sortConfig.direction === 'desc' ? ' ↓' : ' ↑';
|
| 68 |
-
}
|
| 69 |
-
return ' ↕';
|
| 70 |
-
};
|
| 71 |
-
|
| 72 |
if (loading) {
|
| 73 |
return (
|
| 74 |
<div className="flex items-center justify-center min-h-screen">
|
|
@@ -105,7 +99,7 @@ function App() {
|
|
| 105 |
>
|
| 106 |
<div className="flex items-center gap-1">
|
| 107 |
{benchmark}
|
| 108 |
-
<
|
| 109 |
</div>
|
| 110 |
</th>
|
| 111 |
))}
|
|
|
|
| 1 |
import React, { useState, useEffect } from 'react';
|
| 2 |
+
import { ArrowUpDown } from 'lucide-react';
|
| 3 |
import _ from 'lodash';
|
| 4 |
|
| 5 |
const ScoreBar = ({ score }) => {
|
|
|
|
| 63 |
[sortConfig.direction]
|
| 64 |
);
|
| 65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
if (loading) {
|
| 67 |
return (
|
| 68 |
<div className="flex items-center justify-center min-h-screen">
|
|
|
|
| 99 |
>
|
| 100 |
<div className="flex items-center gap-1">
|
| 101 |
{benchmark}
|
| 102 |
+
<ArrowUpDown className="h-4 w-4" />
|
| 103 |
</div>
|
| 104 |
</th>
|
| 105 |
))}
|