mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 06:04:05 +00:00
refactor: memo event line
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { RefObject } from 'react';
|
import { memo, RefObject } from 'react';
|
||||||
|
|
||||||
import DelayIndicator from '../../../common/components/delay-indicator/DelayIndicator';
|
import DelayIndicator from '../../../common/components/delay-indicator/DelayIndicator';
|
||||||
import { useTimer } from '../../../common/hooks/useSocket';
|
import { useTimer } from '../../../common/hooks/useSocket';
|
||||||
@@ -30,7 +30,7 @@ function RollingTime() {
|
|||||||
return <>{formatTime(timer.current, { showSeconds: true, format: 'hh:mm:ss' })}</>;
|
return <>{formatTime(timer.current, { showSeconds: true, format: 'hh:mm:ss' })}</>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function OperatorEvent(props: OperatorEventProps) {
|
function OperatorEvent(props: OperatorEventProps) {
|
||||||
const {
|
const {
|
||||||
colour,
|
colour,
|
||||||
cue,
|
cue,
|
||||||
@@ -88,3 +88,5 @@ export default function OperatorEvent(props: OperatorEventProps) {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default memo(OperatorEvent);
|
||||||
|
|||||||
Reference in New Issue
Block a user