delete old code
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
import { Link } from "react-scroll";
|
||||
import styled from "styled-components";
|
||||
|
||||
export const Button = styled(Link)`
|
||||
border-radius: 50px;
|
||||
background: ${({ primary }) => (primary ? "#01BF71" : "#010606")};
|
||||
white-space: nowrap;
|
||||
padding: ${({ big }) => (big ? "14px 48px" : "12px 30px")};
|
||||
color: ${({ dark }) => (dark ? "#010106" : "#fff")};
|
||||
font-size: $ ${({ fontBig }) => (fontBig ? "20px" : "16px")};
|
||||
outline: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
transition: all 0.2s ease-in-out;
|
||||
|
||||
&:hover {
|
||||
transition: all 0.2s ease-in-out;
|
||||
background: ${({ primary }) => (primary ? "#fff" : "#01BF71")};
|
||||
}
|
||||
`;
|
||||
@@ -1,12 +0,0 @@
|
||||
import { useEffect } from "react";
|
||||
import { useLocation } from "react-router-dom";
|
||||
|
||||
export default function ScrollToTop() {
|
||||
const { pathname } = useLocation();
|
||||
|
||||
useEffect(() => {
|
||||
window.scrollTo(0, 0, { behavior: "smooth" });
|
||||
}, [pathname]);
|
||||
|
||||
return null;
|
||||
}
|
||||
Reference in New Issue
Block a user