mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-14 10:35:11 +00:00
replace useUniqueId() with useId()
there should only be one way to do a thing...
This commit is contained in:
@@ -7,7 +7,7 @@ import './UnexpectedErrorNotification.scss';
|
||||
import { AnchorButton, Button, ButtonGroup, Collapse, Intent } from '@blueprintjs/core';
|
||||
import { useI18n } from '@shopify/react-i18n';
|
||||
import React, { useState } from 'react';
|
||||
import { useUniqueId } from '../utils/react';
|
||||
import { useId } from 'react-aria';
|
||||
import { I18nId } from './i18n';
|
||||
|
||||
type UnexpectedErrorNotificationProps = {
|
||||
@@ -21,7 +21,7 @@ const UnexpectedErrorNotification: React.VoidFunctionComponent<
|
||||
// istanbul ignore next: babel-loader rewrites this line
|
||||
const [i18n] = useI18n();
|
||||
const [isExpanded, setIsExpanded] = useState(false);
|
||||
const labelId = useUniqueId('pb-notification');
|
||||
const labelId = useId();
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user