maxpou/gatsby-starter-morning-dew

View on GitHub
src/components/PrevNextPost.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function PrevNextPost has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const PrevNextPost = props => {
  const { previous, next } = props
  const articles = [previous, next].filter(i => i).map(item => ({ node: item }))
  const { siteCover, defaultLang } = useSiteMetadata()
  const { fluid } = useSiteImages(siteCover)
Severity: Minor
Found in src/components/PrevNextPost.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status