Skip to content

Commit

Permalink
update return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
firehawk89 committed Feb 11, 2024
1 parent c77d7c2 commit 34c0e60
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/sections/projects/project-card.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// TODO: Add projects individual routes

import Card from '@/components/ui/card'
import Chips from '@/components/ui/chips/chips'
import ChipsItem from '@/components/ui/chips/chips-item'
Expand Down Expand Up @@ -40,11 +38,13 @@ const ProjectCard: FC<ProjectCardProps> = ({
<Heading level={3} size="h3">
{title || slug}
</Heading>
<p
className="line-clamp-1 sm:line-clamp-2 md:line-clamp-3"
dangerouslySetInnerHTML={{ __html: body }}
/>
{technologies && (
{body && (
<p
className="line-clamp-1 sm:line-clamp-2 md:line-clamp-3"
dangerouslySetInnerHTML={{ __html: body }}
/>
)}
{!!technologies.length && (
<Chips>
{technologies.map((technology) => (
<ChipsItem key={technology} label={technology} size="sm" />
Expand Down

0 comments on commit 34c0e60

Please sign in to comment.