app: Use OutboundLink for Amazon links.
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
|
import { OutboundLink } from "gatsby-plugin-google-analytics"
|
||||||
|
|
||||||
const getTaggetURL = (book) => {
|
const getTaggetURL = (book) => {
|
||||||
return book.amazon_url + "?tag=vishnuks-20";
|
return book.amazon_url + "?tag=vishnuks-20";
|
||||||
@@ -6,8 +7,8 @@ const getTaggetURL = (book) => {
|
|||||||
|
|
||||||
export default ({ book }) => {
|
export default ({ book }) => {
|
||||||
return (
|
return (
|
||||||
<a href={getTaggetURL(book)} target="_blank">
|
<OutboundLink href={getTaggetURL(book)} target="_blank">
|
||||||
<img style={{ "width": "30px" }} src="https://img.icons8.com/color/48/000000/amazon.png"/>
|
<img style={{ "width": "30px" }} src="https://img.icons8.com/color/48/000000/amazon.png"/>
|
||||||
</a>
|
</OutboundLink>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user