mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Remove mdx-embed to fix build
This commit is contained in:
@@ -14,7 +14,7 @@ interface Props {
|
||||
|
||||
const Card: FC<Props> = ({ title, description, image, tags, href, target, onClick }) => {
|
||||
return (
|
||||
<StyledCard href={href} onClick={onClick} image={Boolean(image)} target={target}>
|
||||
<StyledCard href={href} onClick={onClick} image={image ? Boolean(image) : undefined} target={target}>
|
||||
<div className='card-content'>
|
||||
<h3>{title}</h3>
|
||||
<p>{description}</p>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import styled from 'styled-components';
|
||||
import Link from 'next/link';
|
||||
|
||||
export const StyledCard = styled(Link)<{ image: boolean }>`
|
||||
export const StyledCard = styled(Link)<{ image?: boolean }>`
|
||||
cursor: pointer;
|
||||
width: 100%;
|
||||
display: grid;
|
||||
|
||||
Reference in New Issue
Block a user