Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow finer-grained timers #574

Merged
merged 1 commit into from
Sep 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type DurationSelectionProps = {
};

const marks: Mark[] = [
{ value: 1, label: '1m' },
{ value: 15, label: '15m' },
{ value: 30, label: '30m' },
{ value: 45, label: '45m' },
Expand All @@ -29,7 +30,7 @@ export default function DurationSelection({
const handleChange = useCallback(
(_event: Event, value: number | number[]) => {
// Allows testing on a small duration in development mode
if (!isProduction() && value === 5) {
if (!isProduction() && value === 1) {
onChange(10);
return;
}
Expand All @@ -43,9 +44,9 @@ export default function DurationSelection({
value={duration / 60}
onChange={handleChange}
marks={marks}
min={5}
min={1}
max={60}
step={5}
step={1}
/>
</Container>
);
Expand Down
Loading