Skip to content

Commit

Permalink
move editLinkBase out of render function
Browse files Browse the repository at this point in the history
  • Loading branch information
Emily Plummer committed Apr 30, 2019
1 parent 4408dc8 commit 58221b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {repository} from '../package.json'
import '../src/index.scss'

const DocLink = props => <Link nounderline {...props} />
const editLinkBase = `${repository}/edit/master/pages`

export default class MyApp extends App {
static async getInitialProps({Component, ctx}) {
Expand All @@ -35,7 +36,6 @@ export default class MyApp extends App {
const node = rootPage.first(node => node.path === pathname) || {}
const {file, meta = {}} = node || {}
const isIndex = file.includes('index')
const editLinkBase = `${repository}/edit/master/pages`
const components = getComponents(node)

const Hero = file ? requirePage(file).Hero : null
Expand Down

0 comments on commit 58221b7

Please sign in to comment.