mirror of
https://github.com/Snigdha-OS/package-browser.git
synced 2025-09-08 05:35:02 +02:00
feat: use JSX.Element as component type
This commit is contained in:
@@ -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 (
|
||||
|
Reference in New Issue
Block a user