Fix typo in method name

This commit is contained in:
Elysia Ong
2020-10-12 16:38:50 +08:00
committed by Vishnu Ks
parent 695d92f465
commit e2264c0eeb

View File

@@ -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>
)