Skip to content

Commit

Permalink
feat: add props and alt prop to make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Cayla Hamann committed Jul 13, 2020
1 parent 9798fca commit b2d0272
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Image.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import PropTypes from 'prop-types';

const Image = (props) => {
return <img {...props} />;
const Image = ({ alt, ...props }) => {
return <img alt={alt} {...props} />;
};

Image.propTypes = {
Expand Down

0 comments on commit b2d0272

Please sign in to comment.