chore: code cleaning (#21)

This commit is contained in:
Riccardo Senica
2024-11-23 09:13:15 +01:00
committed by GitHub
parent c4f03feffe
commit c300b2501d
31 changed files with 903 additions and 872 deletions

View File

@@ -7,7 +7,7 @@ import {
CardHeader,
CardTitle
} from './Card';
import Footer from './Footer';
import { Footer } from './Footer';
interface CardProps {
title: string;
@@ -17,13 +17,13 @@ interface CardProps {
footer?: boolean;
}
export default function CustomCard({
export const CustomCard = ({
title,
description,
content,
className,
footer = true
}: CardProps) {
}: CardProps) => {
const [isLoaded, setIsLoaded] = useState(false);
useEffect(() => {
@@ -53,4 +53,4 @@ export default function CustomCard({
</Card>
</div>
);
}
};