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