Skip to content

Commit 4d28534

Browse files
committed
refactor: use React namespace for useEffect in useNormalizeTraceId
Signed-off-by: Samar <hello.samar7@gmail.com>
1 parent fb487bd commit 4d28534

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/jaeger-ui/src/components/TracePage/useNormalizeTraceId.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) 2025 The Jaeger Authors.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
import { useEffect } from 'react';
4+
import * as React from 'react';
55
import { useNavigate, useLocation } from 'react-router-dom-v5-compat';
66

77
import { getUrl } from './url';
@@ -12,7 +12,7 @@ export function useNormalizeTraceId(traceID: string): string {
1212
const navigate = useNavigate();
1313
const location = useLocation();
1414

15-
useEffect(() => {
15+
React.useEffect(() => {
1616
if (traceID && traceID !== normalizedTraceID) {
1717
const url = getUrl(normalizedTraceID);
1818
navigate(`${url}${location.search}`, { replace: true, state: location.state });

0 commit comments

Comments
 (0)