mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-18 13:44:12 +00:00
e5b30770ce
* refactor: cuesheet table body * feat: add table navigation
25 lines
507 B
TypeScript
25 lines
507 B
TypeScript
import { memo } from 'react';
|
|
|
|
import { millisToDelayString } from '../../../../common/utils/dateConfig';
|
|
|
|
import style from '../CuesheetTable.module.scss';
|
|
|
|
interface DelayRowProps {
|
|
duration: number;
|
|
}
|
|
|
|
function DelayRow(props: DelayRowProps) {
|
|
const { duration } = props;
|
|
const delayTime = millisToDelayString(duration, 'expanded');
|
|
|
|
return (
|
|
<tr className={style.delayRow}>
|
|
<td tabIndex={0} role='cell'>
|
|
{delayTime}
|
|
</td>
|
|
</tr>
|
|
);
|
|
}
|
|
|
|
export default memo(DelayRow);
|