Skip to content

Commit

Permalink
chore: remove react-helmet
Browse files Browse the repository at this point in the history
  • Loading branch information
nihalgonsalves committed Dec 25, 2024
1 parent 0394762 commit 21c3792
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 48 deletions.
2 changes: 0 additions & 2 deletions packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
5 changes: 1 addition & 4 deletions packages/frontend/src/pages/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -90,9 +89,7 @@ export const Root = ({

return (
<>
<Helmet>
<title>{data ? `${data.name} - ${title}` : title}</title>
</Helmet>
<title>{data ? `${data.name} - ${title}` : title}</title>
<div className="m-auto flex h-dvh flex-col">
{!navigatorOnLine || bannerText ? (
<header className="bg-muted text-muted-foreground flex justify-center gap-1 p-1 text-center text-xs tracking-tighter">
Expand Down
43 changes: 1 addition & 42 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 21c3792

Please sign in to comment.