Skip to content

Commit

Permalink
refactor: migrate components/Callout.js to ts
Browse files Browse the repository at this point in the history
  • Loading branch information
byhow committed Jun 3, 2022
1 parent 4efc65e commit 994c084
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/components/Callout.js → src/components/Callout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import React from "react"
import styled from "styled-components"
import { GatsbyImage } from "gatsby-plugin-image"
import Translation from "./Translation"

import { TranslationKey } from "../utils/translations"
// Components
import Emoji from "../components/Emoji"
import Emoji from "./Emoji"

const StyledCard = styled.div`
display: flex;
Expand Down Expand Up @@ -46,7 +46,16 @@ const Content = styled.div`
height: 100%;
`

const Callout = ({
interface IProps {
image: string
emoji?: string
alt?: string
titleKey: TranslationKey
descriptionKey: TranslationKey
className?: string
}

const Callout: React.FC<IProps> = ({
image,
emoji,
alt,
Expand Down

0 comments on commit 994c084

Please sign in to comment.