Skip to content

Commit

Permalink
fix(gatsby-theme-docz): replace fragment tag to the short syntax (#992)
Browse files Browse the repository at this point in the history
  • Loading branch information
klaytonfaria authored and pedronauck committed Aug 8, 2019
1 parent 51240df commit 044f351
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions core/gatsby-theme-docz/src/components/NavLink/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const NavLink = ({ item, ...props }) => {
const showHeadings = isCurrent && headings && headings.length > 0

return (
<React.Fragment>
<>
<Link {...props} to={to} sx={styles.link} activeClassName="active" />
{showHeadings &&
headings.map(heading => (
Expand All @@ -35,6 +35,6 @@ export const NavLink = ({ item, ...props }) => {
{heading.value}
</Link>
))}
</React.Fragment>
</>
)
}
6 changes: 3 additions & 3 deletions core/gatsby-theme-docz/src/components/Sidebar/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import React, { Fragment, useState } from 'react'
import React, { useState } from 'react'
import { Global } from '@emotion/core'
import { jsx, Box } from 'theme-ui'
import { useMenus } from 'docz'
Expand All @@ -18,7 +18,7 @@ export const Sidebar = React.forwardRef((props, ref) => {
}

return (
<Fragment>
<>
<Box onClick={props.onClick} sx={styles.overlay(props)}>
{props.open && <Global styles={styles.global} />}
</Box>
Expand All @@ -38,6 +38,6 @@ export const Sidebar = React.forwardRef((props, ref) => {
)
})}
</Box>
</Fragment>
</>
)
})

0 comments on commit 044f351

Please sign in to comment.