feat: use JSX.Element as component type

This commit is contained in:
XlebyllleK
2025-01-11 13:50:29 +02:00
committed by GitHub
parent 39cc3065dd
commit a039720a71
16 changed files with 77 additions and 107 deletions

View File

@@ -1,4 +1,8 @@
import { useState } from 'react';
import {
useState,
JSX
} from 'react';
import { Boxes } from 'lucide-react';
import { Package } from '../../types';
import { InstallGuide } from '../InstallGuide';
@@ -9,7 +13,7 @@ interface PackageCardProps {
package: Package;
}
export function PackageCard({ package: pkg }: PackageCardProps) {
export function PackageCard({ package: pkg }: PackageCardProps): JSX.Element {
const [expanded, setExpanded] = useState(false);
return (