mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-22 01:31:25 -08:00
Temporarily removing the use of useStaticQuery as it seems to have introduced a bug in page rendering. Hard-coding for now; incidentally we will need to load this as a string anyway for localization purposes (#70)
This commit is contained in:
parent
a587482967
commit
5c3a3c022a
3 changed files with 1571 additions and 1096 deletions
|
@ -15,10 +15,7 @@ exports.onCreateWebpackConfig = ({ stage, loaders, actions }) => {
|
|||
use: loaders.null(),
|
||||
},
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
modules: [path.resolve(__dirname, "src"), "node_modules"],
|
||||
},
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
2647
client/package-lock.json
generated
2647
client/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -1,28 +1,17 @@
|
|||
import React from 'react';
|
||||
import { GovBanner, Header, Title, PrimaryNav } from '@trussworks/react-uswds';
|
||||
import { useStaticQuery, graphql, Link } from "gatsby";
|
||||
import { Link } from "gatsby";
|
||||
|
||||
const headerLinks = [
|
||||
<Link to="/">Home</Link>
|
||||
];
|
||||
|
||||
const J40Header = () => {
|
||||
const data: any = useStaticQuery(graphql`
|
||||
query MyQuery {
|
||||
site {
|
||||
siteMetadata {
|
||||
title
|
||||
}
|
||||
}
|
||||
}
|
||||
`)
|
||||
|
||||
const siteTitle: string = data.site.siteMetadata?.title || `Title`
|
||||
return (
|
||||
<>
|
||||
<GovBanner />
|
||||
<Header>
|
||||
<Title>{siteTitle}</Title>
|
||||
<Title>Justice 40</Title>
|
||||
<PrimaryNav items={headerLinks}/>
|
||||
</Header>
|
||||
</>
|
||||
|
|
Loading…
Add table
Reference in a new issue