From 21c3792ee2b0d8aae38bcd85ae63f493c23564c1 Mon Sep 17 00:00:00 2001 From: Nihal Gonsalves Date: Sat, 7 Dec 2024 14:17:51 +0100 Subject: [PATCH] chore: remove react-helmet --- packages/frontend/package.json | 2 -- packages/frontend/src/pages/Root.tsx | 5 +--- yarn.lock | 43 +--------------------------- 3 files changed, 2 insertions(+), 48 deletions(-) diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 4133cd3..b737828 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -67,7 +67,6 @@ "react": "^19.0.0", "react-day-picker": "^8.10.1", "react-dom": "^19.0.0", - "react-helmet": "^6.1.0", "react-hook-form": "^7.54.2", "react-hot-toast": "^2.4.1", "react-router": "^7.1.1", @@ -97,7 +96,6 @@ "@types/papaparse": "^5.3.15", "@types/react": "^19.0.2", "@types/react-dom": "^19.0.2", - "@types/react-helmet": "^6", "@vitejs/plugin-react": "^4.3.4", "@vitest/coverage-v8": "^2.1.8", "autoprefixer": "^10.4.20", diff --git a/packages/frontend/src/pages/Root.tsx b/packages/frontend/src/pages/Root.tsx index dca05cd..fb30aef 100644 --- a/packages/frontend/src/pages/Root.tsx +++ b/packages/frontend/src/pages/Root.tsx @@ -10,7 +10,6 @@ import { import type { TRPCClientErrorLike } from "@trpc/client"; import { AnimatePresence, motion, useReducedMotion } from "motion/react"; import { useCallback, useState } from "react"; -import { Helmet } from "react-helmet"; import { toast } from "react-hot-toast"; import { NavLink, useNavigate } from "react-router"; import { useInterval } from "react-use"; @@ -90,9 +89,7 @@ export const Root = ({ return ( <> - - {data ? `${data.name} - ${title}` : title} - + {data ? `${data.name} - ${title}` : title}
{!navigatorOnLine || bannerText ? (
diff --git a/yarn.lock b/yarn.lock index f0aeefc..03082c1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3386,7 +3386,6 @@ __metadata: "@types/papaparse": "npm:^5.3.15" "@types/react": "npm:^19.0.2" "@types/react-dom": "npm:^19.0.2" - "@types/react-helmet": "npm:^6" "@vitejs/plugin-react": "npm:^4.3.4" "@vitest/coverage-v8": "npm:^2.1.8" autoprefixer: "npm:^10.4.20" @@ -3408,7 +3407,6 @@ __metadata: react: "npm:^19.0.0" react-day-picker: "npm:^8.10.1" react-dom: "npm:^19.0.0" - react-helmet: "npm:^6.1.0" react-hook-form: "npm:^7.54.2" react-hot-toast: "npm:^2.4.1" react-router: "npm:^7.1.1" @@ -7192,15 +7190,6 @@ __metadata: languageName: node linkType: hard -"@types/react-helmet@npm:^6": - version: 6.1.11 - resolution: "@types/react-helmet@npm:6.1.11" - dependencies: - "@types/react": "npm:*" - checksum: 10c0/f7b3bb2151d992a108ae46fed876fb9c8119108397d9a01d150c5642782997542c8b3c52e742b56e8689b7dbfa62ca9cfc76aa7e05dec4e60c652f7ef53fa783 - languageName: node - linkType: hard - "@types/react@npm:*, @types/react@npm:^19.0.2": version: 19.0.2 resolution: "@types/react@npm:19.0.2" @@ -16609,7 +16598,7 @@ __metadata: languageName: node linkType: hard -"prop-types@npm:^15.7.2, prop-types@npm:^15.8.1": +"prop-types@npm:^15.8.1": version: 15.8.1 resolution: "prop-types@npm:15.8.1" dependencies: @@ -16851,27 +16840,6 @@ __metadata: languageName: node linkType: hard -"react-fast-compare@npm:^3.1.1": - version: 3.2.2 - resolution: "react-fast-compare@npm:3.2.2" - checksum: 10c0/0bbd2f3eb41ab2ff7380daaa55105db698d965c396df73e6874831dbafec8c4b5b08ba36ff09df01526caa3c61595247e3269558c284e37646241cba2b90a367 - languageName: node - linkType: hard - -"react-helmet@npm:^6.1.0": - version: 6.1.0 - resolution: "react-helmet@npm:6.1.0" - dependencies: - object-assign: "npm:^4.1.1" - prop-types: "npm:^15.7.2" - react-fast-compare: "npm:^3.1.1" - react-side-effect: "npm:^2.1.0" - peerDependencies: - react: ">=16.3.0" - checksum: 10c0/1d2831d9c3b4f5c91f020076aeb6502437a4788077d0c438421e466eb9633d5dc2aacedf7b779a970b807d61cf87793c5ff76ee3190a185d71c90b5cfb367e96 - languageName: node - linkType: hard - "react-hook-form@npm:^7.54.2": version: 7.54.2 resolution: "react-hook-form@npm:7.54.2" @@ -16974,15 +16942,6 @@ __metadata: languageName: node linkType: hard -"react-side-effect@npm:^2.1.0": - version: 2.1.2 - resolution: "react-side-effect@npm:2.1.2" - peerDependencies: - react: ^16.3.0 || ^17.0.0 || ^18.0.0 - checksum: 10c0/5d934cae438f701ce646f566750ae6a445e99185ce1a026108f9db728147f7962a22ecf8db79ff26089953a3799b3607766904f4f10194ce42bcd5a1aa0215e8 - languageName: node - linkType: hard - "react-style-singleton@npm:^2.2.1, react-style-singleton@npm:^2.2.2": version: 2.2.3 resolution: "react-style-singleton@npm:2.2.3"