File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { Fragment } from 'preact';
4
4
import {
5
5
useCallback ,
6
6
useEffect ,
7
+ useId ,
7
8
useLayoutEffect ,
8
9
useMemo ,
9
10
useRef ,
@@ -14,7 +15,6 @@ import { useClickAway } from '../../hooks/use-click-away';
14
15
import { useFocusAway } from '../../hooks/use-focus-away' ;
15
16
import { useKeyPress } from '../../hooks/use-key-press' ;
16
17
import { useSyncedRef } from '../../hooks/use-synced-ref' ;
17
- import { useUniqueId } from '../../hooks/use-unique-id' ;
18
18
import type { PresentationalProps , TransitionComponent } from '../../types' ;
19
19
import { downcastRef } from '../../util/typing' ;
20
20
import CloseableContext from '../CloseableContext' ;
@@ -173,7 +173,7 @@ export default function Dialog({
173
173
enabled : closeOnFocusAway ,
174
174
} ) ;
175
175
176
- const dialogDescriptionId = useUniqueId ( 'dialog-description' ) ;
176
+ const dialogDescriptionId = useId ( ) ;
177
177
const Wrapper = useMemo (
178
178
( ) => TransitionComponent ?? Fragment ,
179
179
[ TransitionComponent ] ,
You can’t perform that action at this time.
0 commit comments