m-ric HF Staff commited on
Commit
19fbdd9
·
verified ·
1 Parent(s): 9704dfc

Update frontend/src/App.js

Browse files
Files changed (1) hide show
  1. frontend/src/App.js +1 -1
frontend/src/App.js CHANGED
@@ -8,7 +8,7 @@ const ScoreBar = ({ score, isVanilla = false }) => {
8
  const percentage = score <= 1 ? score * 100 : score;
9
  const hue = Math.min(percentage * 1.2, 120); // Maps 0-100% to 0-120 (red to green)
10
  const backgroundColor = `hsl(${hue}, 80%, 50%)`;
11
- const className = isVanilla ? "score-bar" : "vanilla-bar";
12
 
13
  return (
14
  <div className={className}>
 
8
  const percentage = score <= 1 ? score * 100 : score;
9
  const hue = Math.min(percentage * 1.2, 120); // Maps 0-100% to 0-120 (red to green)
10
  const backgroundColor = `hsl(${hue}, 80%, 50%)`;
11
+ const className = isVanilla ? "vanilla-bar" : "score-bar";
12
 
13
  return (
14
  <div className={className}>