replace useUniqueId() with useId()

there should only be one way to do a thing...
This commit is contained in:
David Lechner
2022-05-18 17:16:32 -05:00
parent a005992a21
commit 325562996b
4 changed files with 7 additions and 25 deletions
+2 -2
View File
@@ -11,6 +11,7 @@ import {
} from '@blueprintjs/core';
import { useI18n } from '@shopify/react-i18n';
import React, { useCallback, useRef, useState } from 'react';
import { useId } from 'react-aria';
import { useDispatch } from 'react-redux';
import { useFileStorageMetadata } from '../../fileStorage/hooks';
import {
@@ -19,7 +20,6 @@ import {
validateFileName,
} from '../../pybricksMicropython/lib';
import { useSelector } from '../../reducers';
import { useUniqueId } from '../../utils/react';
import FileNameFormGroup from '../fileNameFormGroup/FileNameFormGroup';
import { Hub, newFileWizardDidAccept, newFileWizardDidCancel } from './actions';
import { I18nId } from './i18n';
@@ -56,7 +56,7 @@ const NewFileWizard: React.VoidFunctionComponent = () => {
dispatch(newFileWizardDidCancel());
}, [dispatch]);
const acceptButtonLabelId = useUniqueId('pybricks-explorer');
const acceptButtonLabelId = useId();
return (
<Dialog