Skip to content

Commit 8999f12

Browse files
committed
Remove usages of useUniqueId
1 parent 132ca0d commit 8999f12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/feedback/Dialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Fragment } from 'preact';
44
import {
55
useCallback,
66
useEffect,
7+
useId,
78
useLayoutEffect,
89
useMemo,
910
useRef,
@@ -14,7 +15,6 @@ import { useClickAway } from '../../hooks/use-click-away';
1415
import { useFocusAway } from '../../hooks/use-focus-away';
1516
import { useKeyPress } from '../../hooks/use-key-press';
1617
import { useSyncedRef } from '../../hooks/use-synced-ref';
17-
import { useUniqueId } from '../../hooks/use-unique-id';
1818
import type { PresentationalProps, TransitionComponent } from '../../types';
1919
import { downcastRef } from '../../util/typing';
2020
import CloseableContext from '../CloseableContext';
@@ -173,7 +173,7 @@ export default function Dialog({
173173
enabled: closeOnFocusAway,
174174
});
175175

176-
const dialogDescriptionId = useUniqueId('dialog-description');
176+
const dialogDescriptionId = useId();
177177
const Wrapper = useMemo(
178178
() => TransitionComponent ?? Fragment,
179179
[TransitionComponent],

0 commit comments

Comments
 (0)