Fix typo in method name
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import React from "react";
|
||||
import { OutboundLink } from "gatsby-plugin-google-analytics"
|
||||
|
||||
const getTaggetURL = (book) => {
|
||||
const getTargetURL = (book) => {
|
||||
return book.amazon_url + "?tag=vishnuks-20";
|
||||
}
|
||||
|
||||
export default ({ book }) => {
|
||||
return (
|
||||
<OutboundLink href={getTaggetURL(book)} target="_blank">
|
||||
<OutboundLink href={getTargetURL(book)} target="_blank">
|
||||
<img alt="Amazon link" style={{ "width": "30px" }} src="https://img.icons8.com/color/48/000000/amazon.png"/>
|
||||
</OutboundLink>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user