client/app/workers/withHeartbeatWorker.tsx
Function withHeartbeatWorker
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const withHeartbeatWorker = <P extends WrappedComponentProps>(
Component: ComponentType<P>,
): ComponentType<P> => {
const workerType = getWorkerType();
if (!workerType) return Component;
- Create a ticketCreate a ticket
Function WrappedComponent
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const WrappedComponent = (props: P): JSX.Element => {
const workerRef = useRef<HeartbeatWorker>();
const [sessionId, setSessionId] = useState<number>();
const params = useParams();
- Create a ticketCreate a ticket