File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -20,18 +20,21 @@ interface Props {
20
20
children : React . ReactNode ;
21
21
}
22
22
23
- const AppName = "Browser Actions" ;
24
-
25
23
const AppHeader = ( ) => {
26
24
const actionItems = [ "setup-chrome" , "setup-firefox" , "setup-edge" ] ;
27
25
const extensionItems = [ "release-chrome-extension" , "release-firefox-addon" ] ;
28
- const { icon } = useStaticQuery ( graphql `
26
+ const { icon, site } = useStaticQuery ( graphql `
29
27
query Icon {
30
28
icon: file(relativePath: { eq: "icon.png" }) {
31
29
childImageSharp {
32
30
gatsbyImageData(width: 24, height: 24)
33
31
}
34
32
}
33
+ site {
34
+ siteMetadata {
35
+ title
36
+ }
37
+ }
35
38
}
36
39
` ) ;
37
40
@@ -51,7 +54,7 @@ const AppHeader = () => {
51
54
image = { icon . childImageSharp . gatsbyImageData }
52
55
alt = "icon"
53
56
/>
54
- < Text margin = { { left : "xsmall" } } > { AppName } </ Text >
57
+ < Text margin = { { left : "xsmall" } } > { site . siteMetadata . title } </ Text >
55
58
</ Button >
56
59
< Menu
57
60
label = "Open Source"
You can’t perform that action at this time.
0 commit comments