Skip to content

Commit

Permalink
Fix accoring to code requiw
Browse files Browse the repository at this point in the history
  • Loading branch information
nilscognite committed Oct 22, 2024
1 parent 4f29426 commit 6225d63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@

import { BaseSliderCommand } from './BaseSliderCommand';

const MIN_VALUE = 0;
const MAX_VALUE = 1;
const STEP_VALUE = 1;
export abstract class FractionSliderCommand extends BaseSliderCommand {
// ==================================================
// CONSTRUCTOR
// ==================================================

public constructor() {
super(0, 1, 0.01);
super(MIN_VALUE, MAX_VALUE, STEP_VALUE);
}

// ==================================================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,10 @@ function createSlider(command: BaseSliderCommand, t: TranslateDelegate): ReactEl
if (!command.isVisible) {
return <></>;
}
const label = command.getLabel(t) + ': ' + command.getValueLabel();
return (
<SliderDiv key={command.uniqueId}>
<label>{command.getLabel(t) + ': ' + command.getValueLabel()}</label>
<label>{label}</label>
<StyledSlider
disabled={!command.isEnabled}
min={command.min}
Expand Down

0 comments on commit 6225d63

Please sign in to comment.