Skip to content

Commit

Permalink
Added title prop to SkillCard component
Browse files Browse the repository at this point in the history
  • Loading branch information
kigawa01 committed May 2, 2024
1 parent 1f244da commit 9ad3c74
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/skill/SkillCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ import Card from "./Card.astro";
interface Props {
desc: string
usingPeriod: string
title: string
}
const {desc, usingPeriod, ...props} = Astro.props
const {desc, usingPeriod, title} = Astro.props
---
<Card {...props}>
<Card title={title}>
<p>{desc}</p>
<p>使用年数: {usingPeriod}</p>
</Card>

0 comments on commit 9ad3c74

Please # to comment.