From 0a71f936f4b8a92c340dceb7ba37c489eb82112c Mon Sep 17 00:00:00 2001 From: Dhairya Gothi <142989448+dhairyagothi@users.noreply.github.com> Date: Fri, 8 Nov 2024 05:21:00 +0000 Subject: [PATCH] dg commit --- frontend/src/Pages/contributor.jsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/src/Pages/contributor.jsx b/frontend/src/Pages/contributor.jsx index 3b109b5..6ccc7d9 100644 --- a/frontend/src/Pages/contributor.jsx +++ b/frontend/src/Pages/contributor.jsx @@ -1,5 +1,7 @@ import React, { useEffect, useState } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; +import backicon from '../assets/svg/backicon.svg'; +import { useNavigate } from 'react-router-dom'; const ContributorCard = ({ login, avatar_url, html_url, contributions, type }) => ( { const [repoStats, setRepoStats] = useState({}); const [loading, setLoading] = useState(true); const [email, setEmail] = useState(''); + const navigate = useNavigate(); + const HomeClick = () => navigate('/'); useEffect(() => { document.title = 'Station Saarthi | Contributors'; @@ -97,6 +101,9 @@ const contributor = () => { return (
{/* Hero Section */} +