From 33545aea9feac94ea98cc579bee8d36f27c1a7b0 Mon Sep 17 00:00:00 2001 From: Anushka Srivastava Date: Sun, 10 Aug 2025 12:15:45 +0530 Subject: [PATCH 1/2] chore: clean Hero/Signup/Router imports; remove ArrowRight; deps reset; a11y on CTA --- package.json | 23 +++++++++++++++-------- src/Routes/Router.tsx | 2 +- src/components/Hero.tsx | 2 +- src/pages/Signup/Signup.tsx | 2 +- 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index f2d89f5..02e559f 100644 --- a/package.json +++ b/package.json @@ -12,35 +12,41 @@ "docker:prod": "docker compose --profile prod up -d --build" }, "dependencies": { - "@emotion/react": "^11.11.3", - "@emotion/styled": "^11.11.0", - "@mui/icons-material": "^5.15.6", - "@mui/material": "^5.15.6", + "@emotion/react": "^11.14.0", + "@emotion/styled": "^11.14.1", + "@mui/icons-material": "^5.18.0", + "@mui/material": "^5.18.0", + "@octokit/graphql": "^9.0.1", "@primer/octicons-react": "^19.15.5", "@vitejs/plugin-react": "^4.3.3", "axios": "^1.7.7", + "date-fns": "^4.1.0", "framer-motion": "^12.23.12", "lucide-react": "^0.525.0", "octokit": "^4.0.2", "postcss": "^8.4.47", "react": "^18.3.1", "react-dom": "^18.3.1", - "react-hot-toast": "^2.4.1", + "react-hot-toast": "^2.5.2", "react-icons": "^5.3.0", - "react-router-dom": "^6.28.0", + "react-router-dom": "^6.30.1", + "recharts": "^3.1.2", "tailwindcss": "^3.4.14" }, "devDependencies": { "@eslint/js": "^9.13.0", + "@types/date-fns": "^2.5.3", "@types/jasmine": "^5.1.8", - "@types/node": "^22.10.1", + "@types/node": "^22.17.1", "@types/react": "^18.3.23", "@types/react-dom": "^18.3.7", "@types/react-redux": "^7.1.34", "@types/react-router-dom": "^5.3.3", + "@types/recharts": "^1.8.29", "@vitejs/plugin-react-swc": "^3.5.0", "autoprefixer": "^10.4.20", "bcryptjs": "^3.0.2", + "concurrently": "^9.2.0", "eslint": "^9.13.0", "eslint-plugin-react": "^7.37.2", "eslint-plugin-react-hooks": "^5.0.0", @@ -51,6 +57,7 @@ "passport": "^0.7.0", "passport-local": "^1.0.0", "supertest": "^7.1.4", - "vite": "^5.4.10" + "typescript": "^5.9.2", + "vite": "^5.4.19" } } diff --git a/src/Routes/Router.tsx b/src/Routes/Router.tsx index 59ea89a..40a7861 100644 --- a/src/Routes/Router.tsx +++ b/src/Routes/Router.tsx @@ -1,4 +1,4 @@ -import { Navigate, Route, Routes } from "react-router-dom"; +import { Routes, Route } from "react-router-dom"; import Tracker from "../pages/Tracker/Tracker.tsx"; import About from "../pages/About/About"; import Contact from "../pages/Contact/Contact"; diff --git a/src/components/Hero.tsx b/src/components/Hero.tsx index 3200908..1549f8e 100644 --- a/src/components/Hero.tsx +++ b/src/components/Hero.tsx @@ -1,4 +1,4 @@ -import { Search, ArrowRight } from 'lucide-react'; +import { Search } from 'lucide-react'; import { Link } from 'react-router-dom'; const Hero = () => { diff --git a/src/pages/Signup/Signup.tsx b/src/pages/Signup/Signup.tsx index 4b5b539..d03a921 100644 --- a/src/pages/Signup/Signup.tsx +++ b/src/pages/Signup/Signup.tsx @@ -1,4 +1,4 @@ -import React, { useState, ChangeEvent, FormEvent } from "react"; +import React, { useState } from "react"; import axios from "axios"; import { useNavigate ,Link } from "react-router-dom"; import { User, Mail, Lock } from "lucide-react"; From 70651547d8d96478b14e449c4c4c1737693ebea5 Mon Sep 17 00:00:00 2001 From: Mehul Prajapati Date: Tue, 12 Aug 2025 05:26:16 -0400 Subject: [PATCH 2/2] Update package.json --- package.json | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 02e559f..f2d89f5 100644 --- a/package.json +++ b/package.json @@ -12,41 +12,35 @@ "docker:prod": "docker compose --profile prod up -d --build" }, "dependencies": { - "@emotion/react": "^11.14.0", - "@emotion/styled": "^11.14.1", - "@mui/icons-material": "^5.18.0", - "@mui/material": "^5.18.0", - "@octokit/graphql": "^9.0.1", + "@emotion/react": "^11.11.3", + "@emotion/styled": "^11.11.0", + "@mui/icons-material": "^5.15.6", + "@mui/material": "^5.15.6", "@primer/octicons-react": "^19.15.5", "@vitejs/plugin-react": "^4.3.3", "axios": "^1.7.7", - "date-fns": "^4.1.0", "framer-motion": "^12.23.12", "lucide-react": "^0.525.0", "octokit": "^4.0.2", "postcss": "^8.4.47", "react": "^18.3.1", "react-dom": "^18.3.1", - "react-hot-toast": "^2.5.2", + "react-hot-toast": "^2.4.1", "react-icons": "^5.3.0", - "react-router-dom": "^6.30.1", - "recharts": "^3.1.2", + "react-router-dom": "^6.28.0", "tailwindcss": "^3.4.14" }, "devDependencies": { "@eslint/js": "^9.13.0", - "@types/date-fns": "^2.5.3", "@types/jasmine": "^5.1.8", - "@types/node": "^22.17.1", + "@types/node": "^22.10.1", "@types/react": "^18.3.23", "@types/react-dom": "^18.3.7", "@types/react-redux": "^7.1.34", "@types/react-router-dom": "^5.3.3", - "@types/recharts": "^1.8.29", "@vitejs/plugin-react-swc": "^3.5.0", "autoprefixer": "^10.4.20", "bcryptjs": "^3.0.2", - "concurrently": "^9.2.0", "eslint": "^9.13.0", "eslint-plugin-react": "^7.37.2", "eslint-plugin-react-hooks": "^5.0.0", @@ -57,7 +51,6 @@ "passport": "^0.7.0", "passport-local": "^1.0.0", "supertest": "^7.1.4", - "typescript": "^5.9.2", - "vite": "^5.4.19" + "vite": "^5.4.10" } }