mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-17 13:23:35 +00:00
refactor: cuesheet time format (#1634)
This commit is contained in:
committed by
Carlos Valente
parent
fb9fdf6a38
commit
c8c2a05724
@@ -1,5 +1,7 @@
|
||||
import { memo, PropsWithChildren, useCallback, useEffect, useRef, useState } from 'react';
|
||||
import { millisToString, parseUserTime } from 'ontime-utils';
|
||||
import { parseUserTime } from 'ontime-utils';
|
||||
|
||||
import { formatTime } from '../../../../common/utils/time';
|
||||
|
||||
import SingleLineCell from './SingleLineCell';
|
||||
import TextLikeInput from './TextLikeInput';
|
||||
@@ -84,7 +86,7 @@ function TimeInputDuration(props: PropsWithChildren<TimeInputDurationProps>) {
|
||||
[initialValue, lockedValue, onSubmit],
|
||||
);
|
||||
|
||||
const timeString = millisToString(value);
|
||||
const timeString = formatTime(value);
|
||||
|
||||
return isEditing ? (
|
||||
<SingleLineCell
|
||||
|
||||
Reference in New Issue
Block a user