Skip to content

Commit

Permalink
Just change export syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
dipree committed Apr 16, 2024
1 parent 92c4344 commit f52778e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/Head.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import Helmet from 'react-helmet'
import useSiteMetadata from './use-site-metadata'

function Head(props) {
export default function Head(props) {
const siteMetadata = useSiteMetadata()
const title = props.title ? `${props.title} | ${siteMetadata.title}` : siteMetadata.title
const description = props.description || siteMetadata.description
Expand All @@ -19,6 +19,4 @@ function Head(props) {
<script src="https://analytics.githubassets.com/hydro-marketing.min.js"></script>
</Helmet>
)
}

export default Head
}

0 comments on commit f52778e

Please sign in to comment.