Skip to content

Commit

Permalink
Fix tab title
Browse files Browse the repository at this point in the history
  • Loading branch information
naticampiglia committed Jun 13, 2024
1 parent 6965d9b commit 0c3c647
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
3 changes: 1 addition & 2 deletions src/components/hero.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React, { useEffect } from 'react';
import React from 'react';
import Button from './button';

const Hero = () => {
useEffect(() => window.scrollTo(0, 0), []);
return (
<div id='#hero' className='container-border-bottom'>
<div className='container mx-auto'>
Expand Down
8 changes: 4 additions & 4 deletions src/components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { Helmet } from 'react-helmet';

import Header from './header';
import Footer from './footer';
import { withPrefix } from 'gatsby';

const Layout = ({ children }: any) => (
<>
const Layout = ({ children }: any) => {
React.useEffect(() => window.scrollTo(0, 0), []);
return <>
<Helmet>
<script src='https://gumroad.com/js/gumroad.js' />
<script
Expand Down Expand Up @@ -39,7 +39,7 @@ const Layout = ({ children }: any) => (
</div>
<Footer />
</>
);
};

Layout.propTypes = {
children: PropTypes.node.isRequired,
Expand Down
2 changes: 1 addition & 1 deletion src/components/seo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function Seo({
},
{
name: `twitter:title`,
content: title,
content: siteTitle,
},
{
name: `twitter:description`,
Expand Down
7 changes: 3 additions & 4 deletions src/pages/contact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ import * as React from 'react';

import Layout from '../components/layout';

const Contact = () => {
React.useEffect(() => window.scrollTo(0, 0), []);
return <Layout>
const Contact = () => (
<Layout>
<div id='#solutions' className=''>
<div className='container mx-auto'>
<div className='flex flex-col relative md:py-24 py-16'>
Expand Down Expand Up @@ -102,6 +101,6 @@ const Contact = () => {
</div>
</div>
</Layout>
};
);

export default Contact;

0 comments on commit 0c3c647

Please sign in to comment.