Skip to content

Commit

Permalink
Add basic padding times
Browse files Browse the repository at this point in the history
Does not yet add support for "*0 or *5" and other similar paddings that
dizque has, since that will require a bit more work.
  • Loading branch information
chrisbenincasa committed Mar 21, 2024
1 parent 5095cdd commit 927fdf4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/src/hooks/programming_controls/usePadStartTimes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ const OneMinuteMillis = 1000 * 60;

export const StartTimePaddingOptions: readonly StartTimePadding[] = [
{ mod: -1, description: 'None' },
{ mod: 5, description: ':05, :10, ..., :55' },
{ mod: 10, description: ':10, :20, ..., :50' },
{ mod: 15, description: ':00, :15, :30, :45' },
{ mod: 30, description: ':00, :30' },
{ mod: 60, description: ':00' },
{ mod: 20, description: ':20, :40, :00' },
] as const;

export function usePadStartTimes() {
Expand Down

0 comments on commit 927fdf4

Please sign in to comment.