diff --git a/src/UnderlineNav2/UnderlineNavItem.tsx b/src/UnderlineNav2/UnderlineNavItem.tsx index cca058b524e..59560422ae4 100644 --- a/src/UnderlineNav2/UnderlineNavItem.tsx +++ b/src/UnderlineNav2/UnderlineNavItem.tsx @@ -1,4 +1,4 @@ -import React, {forwardRef, useLayoutEffect, useRef, useContext, MutableRefObject, RefObject} from 'react' +import React, {forwardRef, useRef, useContext, MutableRefObject, RefObject} from 'react' import Box from '../Box' import {merge, SxProp} from '../sx' import {IconProps} from '@primer/octicons-react' @@ -7,6 +7,7 @@ import {UnderlineNavContext} from './UnderlineNavContext' import CounterLabel from '../CounterLabel' import {getLinkStyles, wrapperStyles, iconWrapStyles, counterStyles} from './styles' import {LoadingCounter} from './LoadingCounter' +import useLayoutEffect from '../utils/useIsomorphicLayoutEffect' // adopted from React.AnchorHTMLAttributes type LinkProps = {