fix: use MAX_TIME_MINUTES constant to resolve unused variable error
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -124,7 +124,7 @@ const TimeBreaker: React.FC<TimeBreakerProps> = ({ language }) => {
|
||||
<input
|
||||
type="range"
|
||||
min="0"
|
||||
max="180"
|
||||
max={MAX_TIME_MINUTES}
|
||||
value={Math.ceil(timeLeft / 60)}
|
||||
onChange={(e) => {
|
||||
const minutes = parseInt(e.target.value, 10);
|
||||
@@ -135,7 +135,7 @@ const TimeBreaker: React.FC<TimeBreakerProps> = ({ language }) => {
|
||||
/>
|
||||
<div className="slider-labels">
|
||||
<span>0m</span>
|
||||
<span>180m</span>
|
||||
<span>{MAX_TIME_MINUTES}m</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user