Skip to content

Commit d606499

Browse files
committed
refactor: Update PersonCardSkeleton to use 'about' prop instead of 'showDescription'
- Changed 'showDescription' prop to 'about' in PersonCardSkeleton component - Updated types to reflect the new 'about' prop for better clarity and usage
1 parent 3f37a4f commit d606499

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Components/PersonCard/PersonCardSkeleton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const PersonCardSkeleton: FC<IPersonCardSkeletonProps> = ({
88
className,
99
showTags = true,
1010
showSocialLinks = true,
11-
showDescription = true
11+
about = true
1212
}) => {
1313
const getSizeClasses = (size: string) => {
1414
const sizeClasses: Record<string, string> = {
@@ -66,7 +66,7 @@ const PersonCardSkeleton: FC<IPersonCardSkeletonProps> = ({
6666
</div>
6767

6868
{/* Description Skeleton */}
69-
{showDescription && (
69+
{about && (
7070
<div className='yl:space-y-2'>
7171
<div className='yl:h-4 yl:bg-border yl:rounded yl:w-full' />
7272
<div className='yl:h-4 yl:bg-border yl:rounded yl:w-3/4 yl:mx-auto' />

src/Components/PersonCard/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,5 @@ export interface IPersonCardSkeletonProps {
9090
className?: string;
9191
showTags?: boolean;
9292
showSocialLinks?: boolean;
93+
about?: boolean;
9394
}

0 commit comments

Comments
 (0)