haysclark/gatsby-starter-casper

View on GitHub
src/components/AuthorLocation/AuthorLocation.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from "react";

class AuthorLocation extends React.Component {
  render() {
    const { location } = this.props;
    if (location) {
      return <span className="author-location icon-location">{location}</span>;
    }
    return null;
  }
}

export default AuthorLocation;