Skip to content

Commit

Permalink
Merge pull request #68 from rishabhpathak359/dev
Browse files Browse the repository at this point in the history
Fixed Back-to-top in team page
  • Loading branch information
virajchandra51 authored Sep 30, 2023
2 parents 70b89c5 + 7bd67cc commit 6d19493
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/footer/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import tcpName from "../../assets/images/tcpName.png";
import codeutsava from "../../assets/images/codeutsava.png";
import { Link } from "react-router-dom";

const Footer = () => {
const Footer = ({id}) => {
return (
<div className="codeutsava__footer" id="contactus">
<div className="codeutsava__footer-container1">
Expand Down Expand Up @@ -139,7 +139,7 @@ const Footer = () => {
Architected with ❤️ by <Link to="/team">TCP Team</Link>
</div>
<div className="codeutsava__footer-back-to-top">
<a href="#home">
<a href={`${id=="speakers"?'#speakers':'#home'}`}>
Back to Top
<svg
fill="var(--secondary-c)"
Expand Down
2 changes: 1 addition & 1 deletion src/components/team/Team.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const Team = ({year}) => {
</div>
</div>
<div className="codeutsava__footer-container">
<Footer />
<Footer id={"speakers"} />
</div>
</motion.div>
);
Expand Down

0 comments on commit 6d19493

Please sign in to comment.