diff --git a/src/components/breadcrumb/breadcrumb.js b/src/components/breadcrumb/breadcrumb.js
index fcfd94b7c..783e1b592 100644
--- a/src/components/breadcrumb/breadcrumb.js
+++ b/src/components/breadcrumb/breadcrumb.js
@@ -47,9 +47,10 @@ const Breadcrumbs = ({
return (
-
+ {/* `parentSiteUrl` is absolute, `Link` only supports relative urls */}
+
-
+
-
diff --git a/src/components/head/head.js b/src/components/head/head.js
index 8bb793a00..0a027c4e6 100644
--- a/src/components/head/head.js
+++ b/src/components/head/head.js
@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Helmet } from 'react-helmet';
-import { StaticQuery, graphql } from 'gatsby';
+import { useStaticQuery, graphql } from 'gatsby';
import { Location } from '@reach/router';
import schemaGenerator from '../../helpers/schemaGenerator';
import { pathPrefix } from '../../../site-config';
@@ -195,34 +195,33 @@ Head.propTypes = {
location: PropTypes.object.isRequired,
};
-const HeadWithQuery = (props) => (
- (
-
- {({ location }) => (
-
- )}
-
- )}
- />
-);
+ }
+ `);
+
+ return (
+
+ {({ location }) => (
+
+ )}
+
+ );
+}
export default HeadWithQuery;
diff --git a/src/components/layout/layout.js b/src/components/layout/layout.js
index 68859fdf6..6209cb3fe 100644
--- a/src/components/layout/layout.js
+++ b/src/components/layout/layout.js
@@ -1,6 +1,6 @@
import React, { useRef, useState } from 'react';
import PropTypes from 'prop-types';
-import { StaticQuery, graphql, navigate } from 'gatsby';
+import { useStaticQuery, graphql, navigate } from 'gatsby';
import Head from '../head/head';
import Header from '../header/header';
import Footer from '../footer/footer';
@@ -74,20 +74,19 @@ Layout.propTypes = {
crumbLabel: PropTypes.string,
};
-const LayoutWithQuery = (props) => (
- }
- />
-);
+ }
+ `);
+
+ return ;
+}
LayoutWithQuery.propTypes = {
children: PropTypes.node.isRequired,
diff --git a/src/components/tooltip/tooltip.js b/src/components/tooltip/tooltip.js
index 32fb7bc9b..a5ad38e41 100644
--- a/src/components/tooltip/tooltip.js
+++ b/src/components/tooltip/tooltip.js
@@ -1,7 +1,7 @@
import React, { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
-const Tooltip = ({ children, text, showDelay, hideDelay }) => {
+const Tooltip = ({ children, text, showDelay, hideDelay, className = '' }) => {
const [showTooltip, setShowTooltip] = useState(false);
useEffect(() => {
@@ -23,7 +23,7 @@ const Tooltip = ({ children, text, showDelay, hideDelay }) => {
return (