Skip to content

Commit 3bbb147

Browse files
committed
added image
1 parent 8d24109 commit 3bbb147

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/components/buttons/GithubButtton.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import PropTypes from "prop-types"
22
import React from "react"
3-
4-
const GithubButton = ({ children, className, img, onClick }) => (
3+
import Github from "../../assets/github.svg"
4+
const GithubButton = ({ children, className, onClick }) => (
55
<button className={`${className} cursor-pointer `} onClick={onClick}>
66
<span className="flex flex-row">
7-
{children} <img src={img} alt="framework" className="w-6" />
7+
{children} <img src={Github} alt="framework" className="w-6" />
88
</span>
99
</button>
1010
)
@@ -13,7 +13,6 @@ GithubButton.propTypes = {
1313
children: PropTypes.string,
1414
className: PropTypes.string,
1515
onClick: PropTypes.func,
16-
img: PropTypes.string,
1716
}
1817

1918
GithubButton.defaultProps = {

0 commit comments

Comments
 (0)