Skip to content

Commit

Permalink
fix(gatsby-theme-blog): Remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts committed Jan 6, 2021
1 parent 25e76f5 commit 60d8928
Showing 1 changed file with 19 additions and 22 deletions.
41 changes: 19 additions & 22 deletions packages/gatsby-theme-blog/src/components/post-hero-caption.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
import React from "react"
import { Styled, css, Flex } from "theme-ui"

const PostHeroCaption = ({ text, url }) => {
console.log(__filename, `text`, { text, url })
return (
<>
{text && (
<Flex>
{url ? (
<Styled.a
css={css({ margin: `auto`, fontStyle: `italic` })}
href={url}
target="_blank"
>
{text}
</Styled.a>
) : (
<Styled.i css={css({ margin: `auto` })}>{text}</Styled.i>
)}
</Flex>
)}
</>
)
}
const PostHeroCaption = ({ text, url }) => (
<>
{text && (
<Flex>
{url ? (
<Styled.a
css={css({ margin: `auto`, fontStyle: `italic` })}
href={url}
target="_blank"
>
{text}
</Styled.a>
) : (
<Styled.i css={css({ margin: `auto` })}>{text}</Styled.i>
)}
</Flex>
)}
</>
)

export default PostHeroCaption

0 comments on commit 60d8928

Please sign in to comment.