diff --git a/public/locales/common/pt.json b/public/locales/common/pt.json index 2a9464b..aa362f3 100644 --- a/public/locales/common/pt.json +++ b/public/locales/common/pt.json @@ -11,7 +11,7 @@ "part2": "TEU NEGÓCIO" }, "subheading": { - "part1": "Nós tratamos de toda a tua presença digital,", + "part1": "Nós tratamos da tua presença digital,", "part2": "para que te possas concentrar no que é importante!" }, "button": "Contacta-nos" diff --git a/src/Components/Navbar/Navbar.tsx b/src/Components/Navbar/Navbar.tsx index 940f704..d402c65 100644 --- a/src/Components/Navbar/Navbar.tsx +++ b/src/Components/Navbar/Navbar.tsx @@ -9,7 +9,7 @@ export default () => { const { t, i18n } = useTranslation(); const [colorChange, setColorChange] = useState(false); - useEffect(() => { + useEffect(() => { const changeColor = () => { if (window.scrollY >= 100) { setColorChange(true); @@ -39,15 +39,19 @@ export default () => { ]; const handleNavigation = (path: string) => { - if ((window.location.pathname === "/tos" || window.location.pathname === "/privacy") && navigation.some(navItem => navItem.path === path)) { + if ( + (window.location.pathname === "/tos" || + window.location.pathname === "/privacy") && + navigation.some((navItem) => navItem.path === path) + ) { sessionStorage.setItem("scrollPath", path); window.location.href = "/"; - }else{ - smoothScroll(path) + } else { + smoothScroll(path); } }; - const smoothScroll = (path :string) => { + const smoothScroll = (path: string) => { const element = document.getElementById(path); const navbarHeight = 110; // Replace with your navbar's height if (element) { @@ -55,7 +59,7 @@ export default () => { element.getBoundingClientRect().top + window.scrollY - navbarHeight; window.scrollTo({ top: top, behavior: "smooth" }); } - } + }; const changeLanguage = (lng: string) => { i18n.changeLanguage(lng); @@ -64,17 +68,17 @@ export default () => { return (