Skip to content

Commit

Permalink
feat: refactor to just props
Browse files Browse the repository at this point in the history
  • Loading branch information
Cayla Hamann committed Jul 13, 2020
1 parent 1f17610 commit 9798fca
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 = ({ src, alt, width }) => {
return <img src={src} alt={alt} width={width} />;
const Image = (props) => {
return <img {...props} />;
};

Image.propTypes = {
Expand Down

0 comments on commit 9798fca

Please sign in to comment.