Skip to content

Commit

Permalink
Fixed Back-to-top in team page
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpathak359 committed Sep 30, 2023
1 parent 413341f commit 7bd67cc
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 7bd67cc

Please sign in to comment.