diff --git a/package.json b/package.json index c3e13e56..a6e4646b 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,7 @@ "react-dom": "^18.3.1", "react-hook-form": "^7.51.5", "react-hotkeys-hook": "^4.5.0", - "react-router-dom": "^6.26.2", - "uuid": "^11.0.3" + "react-router-dom": "^6.26.2" }, "devDependencies": { "@commitlint/cli": "^19.3.0", diff --git a/src/components/landing-page/join-production.tsx b/src/components/landing-page/join-production.tsx index ea3836fb..9a186faa 100644 --- a/src/components/landing-page/join-production.tsx +++ b/src/components/landing-page/join-production.tsx @@ -2,7 +2,6 @@ import { SubmitHandler, useForm } from "react-hook-form"; import { ErrorMessage } from "@hookform/error-message"; import { useEffect, useState } from "react"; import styled from "@emotion/styled"; -import { v4 as uuidv4 } from "uuid"; import { DisplayContainerHeader } from "./display-container-header.tsx"; import { DecorativeLabel, @@ -141,7 +140,7 @@ export const JoinProduction = ({ payload: payload.productionId, }); - const uuid = uuidv4(); + const uuid = globalThis.crypto.randomUUID(); dispatch({ type: "ADD_CALL", diff --git a/yarn.lock b/yarn.lock index dca8a669..dbeb395c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3824,11 +3824,6 @@ uri-js@^4.2.2: dependencies: punycode "^2.1.0" -uuid@^11.0.3: - version "11.0.3" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-11.0.3.tgz#248451cac9d1a4a4128033e765d137e2b2c49a3d" - integrity sha512-d0z310fCWv5dJwnX1Y/MncBAqGMKEzlBb1AOf7z9K8ALnd0utBX/msg/fA0+sbyN1ihbMsLhrBlnl1ak7Wa0rg== - vite-plugin-svgr@^4.2.0: version "4.3.0" resolved "https://registry.yarnpkg.com/vite-plugin-svgr/-/vite-plugin-svgr-4.3.0.tgz#742f16f11375996306c696ec323e4d23f6005075"