File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { Link , graphql , useStaticQuery } from "gatsby" ;
2
2
import { GatsbyImage } from "gatsby-plugin-image" ;
3
3
import { Grommet } from "grommet" ;
4
- import type * as React from "react" ;
4
+ import * as React from "react" ;
5
5
import "./layout.css" ;
6
6
import {
7
7
Box ,
@@ -61,11 +61,15 @@ const AppHeader = () => {
61
61
items = { [
62
62
actionItems . map ( ( action ) => ( {
63
63
label : action ,
64
- as : ( props ) => < Link to = { `/${ action } ` } { ...props } /> ,
64
+ as : React . forwardRef ( ( props , ref ) => (
65
+ < Link to = { `/${ action } ` } { ...props } ref = { ref } />
66
+ ) ) ,
65
67
} ) ) ,
66
68
extensionItems . map ( ( extension ) => ( {
67
69
label : extension ,
68
- as : ( props ) => < Link to = { `/${ extension } ` } { ...props } /> ,
70
+ as : React . forwardRef ( ( props , ref ) => (
71
+ < Link to = { `/${ extension } ` } { ...props } ref = { ref } />
72
+ ) ) ,
69
73
} ) ) ,
70
74
] }
71
75
/>
You can’t perform that action at this time.
0 commit comments