Skip to content

Commit

Permalink
Migrated ActionCard.js to TS
Browse files Browse the repository at this point in the history
  • Loading branch information
hursittarcan authored May 31, 2022
1 parent 162a195 commit 7bb0f47
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions src/components/ActionCard.js → src/components/ActionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,27 @@ const Card = styled(Link)`
}
`

const ActionCard = ({
to,
alt,
image,
title,
description,
children,
className,
isRight,
isBottom = true,
export interface IProps {
to?: string
alt?: string
image?: string
title?: string
description?: string
className?: string
isRight?: boolean
isBottom?: boolean
}

const ActionCard: React.FC<IProps> = ({
to,
alt,
image,
title,
description,
children,
className,
isRight,
isBottom = true
}) => {
const isImageURL = typeof image === "string" && image.includes("http")
return (
Expand Down

0 comments on commit 7bb0f47

Please sign in to comment.