File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,8 @@ const generateUnformattedCode = (
121
121
if ( projectType === 'Next.js' ) {
122
122
return `<div><Link href="/${ child . name } "><a>${ child . name } </a></Link></div>`
123
123
} else if ( projectType === 'Gatsby.js' ) {
124
- return `<div><Link to="/${ child . name } ">${ child . name } </Link>`
124
+ return `<div><Link to="/${ child . name } ">${ child . name } </Link></div>`
125
+ // return `<div><Link href="/${child.name}"><a>${child.name}</a></Link></div>`
125
126
} else return `<div><a>${ child . name } </a></div>`
126
127
}
127
128
} )
@@ -236,10 +237,9 @@ const generateUnformattedCode = (
236
237
} else {
237
238
return `
238
239
import React, { useState } from 'react';
240
+ ${ importsMapped }
239
241
import { StaticQuery, graphql } from 'gatsby';
240
242
${ links ? `import { Link } from 'gatsby'` : `` }
241
-
242
- ${ importsMapped }
243
243
244
244
245
245
const ${ currentComponent . name } = (props): JSX.Element => {
You can’t perform that action at this time.
0 commit comments