From fb2d20cd33d2e8772ca6b9cad4363118a8da1fb6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 12 Nov 2024 17:58:01 +0000 Subject: [PATCH] chore: close outstanding dependeabot vulnerabilities --- frontend/shared/ExpandableArea.jsx | 8 +- package.json | 17 ++-- yarn.lock | 139 ++++++++++++++--------------- 3 files changed, 82 insertions(+), 82 deletions(-) diff --git a/frontend/shared/ExpandableArea.jsx b/frontend/shared/ExpandableArea.jsx index 21834c6ef..b28f23f7e 100644 --- a/frontend/shared/ExpandableArea.jsx +++ b/frontend/shared/ExpandableArea.jsx @@ -1,6 +1,5 @@ -import React from 'react'; +import React, { useId } from 'react'; import PropTypes from 'prop-types'; -import shortid from 'shortid'; // Based on the USWDS Accordion, but only ever has a single // item that can be expanded or collapsed @@ -11,7 +10,10 @@ function ExpandableArea({ children = null, isExpanded = false, }) { - const id = `expandable-area-${shortid.generate()}`; + // specifically don't generate this id with another library like nanoid + // https://github.com/ai/nanoid/?tab=readme-ov-file#usage + const partialId = useId(); + const id = `expandable-area-${partialId}`; return (