Skip to content

Commit

Permalink
refactor: memo event line
Browse files Browse the repository at this point in the history
  • Loading branch information
cpvalente committed Sep 2, 2023
1 parent f842d5b commit b0090a2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RefObject } from 'react';
import { memo, RefObject } from 'react';

import DelayIndicator from '../../../common/components/delay-indicator/DelayIndicator';
import { useTimer } from '../../../common/hooks/useSocket';
Expand Down Expand Up @@ -30,7 +30,7 @@ function RollingTime() {
return <>{formatTime(timer.current, { showSeconds: true, format: 'hh:mm:ss' })}</>;
}

export default function OperatorEvent(props: OperatorEventProps) {
function OperatorEvent(props: OperatorEventProps) {
const {
colour,
cue,
Expand Down Expand Up @@ -88,3 +88,5 @@ export default function OperatorEvent(props: OperatorEventProps) {
</div>
);
}

export default memo(OperatorEvent);

0 comments on commit b0090a2

Please sign in to comment.