diff --git a/components/atomic/Tile/index.js b/components/atomic/Tile/index.js
index 89c65ae9..0543d3f5 100644
--- a/components/atomic/Tile/index.js
+++ b/components/atomic/Tile/index.js
@@ -1,5 +1,5 @@
import PropTypes from "prop-types";
-import { useUID } from "react-uid";
+import { useId } from "react";
import classNames from "classnames";
import {
ResponsiveImage,
@@ -25,7 +25,7 @@ const Tile = ({
type = "related",
showSharePopup,
}) => {
- const uid = useUID();
+ const uid = useId();
const { siteInfo } = useGlobalData();
const finalImage =
type === "jobs" ? image : image || siteInfo?.siteImage?.[0];
diff --git a/components/atomic/Tile/patterns/InvestigationTile/index.js b/components/atomic/Tile/patterns/InvestigationTile/index.js
index 2195fc78..a6b621c8 100644
--- a/components/atomic/Tile/patterns/InvestigationTile/index.js
+++ b/components/atomic/Tile/patterns/InvestigationTile/index.js
@@ -1,12 +1,12 @@
+import { useId } from "react";
import PropTypes from "prop-types";
-import { useUID } from "react-uid";
import { Image } from "@rubin-epo/epo-react-lib";
import * as Styled from "./styles";
import { useTranslation } from "react-i18next";
import { imageShaper } from "@/lib/utils";
const InvestigationTile = ({ investigation, useExternalLink }) => {
- const uid = useUID();
+ const uid = useId();
const { t } = useTranslation();
const { cantoAssetSingle, status, title, externalUrl, landingPage } =
diff --git a/components/atomic/Tile/patterns/SlideTile/index.js b/components/atomic/Tile/patterns/SlideTile/index.js
index 34207145..27941ee3 100644
--- a/components/atomic/Tile/patterns/SlideTile/index.js
+++ b/components/atomic/Tile/patterns/SlideTile/index.js
@@ -1,5 +1,5 @@
import PropTypes from "prop-types";
-import { useUID } from "react-uid";
+import { useId } from "react";
import classNames from "classnames";
import {
ResponsiveImage,
@@ -22,7 +22,7 @@ const SlideTile = ({
titleTag = "h3",
type = "related",
}) => {
- const uid = useUID();
+ const uid = useId();
const { siteInfo } = useGlobalData();
const finalImage =
type === "jobs" ? image : image || siteInfo?.siteImage?.[0];
diff --git a/package.json b/package.json
index ef095dba..dc5e6df4 100644
--- a/package.json
+++ b/package.json
@@ -85,7 +85,6 @@
"react-is": "^18.2.0",
"react-player": "^2.12.0",
"react-popper": "^2.3.0",
- "react-uid": "^2.3.2",
"striptags": "^3.2.0",
"styled-components": "5.3.11",
"swr": "^1.3.0",
diff --git a/pages/_app.js b/pages/_app.js
index c35ae110..7dc7f5e7 100644
--- a/pages/_app.js
+++ b/pages/_app.js
@@ -3,7 +3,6 @@
import PropTypes from "prop-types";
import "@/lib/i18n";
import "focus-visible";
-import { UIDReset } from "react-uid";
import Script from "next/script";
import { AuthenticationContextProvider } from "@/contexts/Authentication";
import useAuthentication from "@/hooks/useAuthentication";
@@ -23,23 +22,22 @@ function Client({ Component, pageProps }) {
});
return (
-
-
- {PLAUSIBLE_DOMAIN && (
+
+ {PLAUSIBLE_DOMAIN && (
+
+ )}
+ {SURVEY_SPARROW && (
+ <>
+
- )}
- {SURVEY_SPARROW && (
- <>
-
-
- >
- )}
-
-
-
-
+ }}
+ />
+ >
+ )}
+
+
+
);
}