refactor frontend forms for updated HeroUI inputs
Some checks failed
Deploy Discord Bot / deploy (push) Has been cancelled
Some checks failed
Deploy Discord Bot / deploy (push) Has been cancelled
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Card, CardHeader, CardContent } from '@heroui/react';
|
||||
import { Card, CardHeader, CardContent, CardTitle, CardDescription } from '@heroui/react';
|
||||
import type { ReactNode } from 'react';
|
||||
|
||||
type Props = {
|
||||
@@ -12,9 +12,9 @@ export function SectionCard({ title, subtitle, children, action }: Props) {
|
||||
return (
|
||||
<Card className="border border-default-100 bg-gradient-to-b from-default-50/40 to-background">
|
||||
<CardHeader className="flex items-start justify-between gap-4 px-6 pt-6 pb-0">
|
||||
<div className="min-w-0">
|
||||
<h2 className="text-xl font-bold tracking-tight">{title}</h2>
|
||||
{subtitle && <p className="mt-1 text-small text-default-500">{subtitle}</p>}
|
||||
<div className="min-w-0 flex flex-col gap-1">
|
||||
<CardTitle>{title}</CardTitle>
|
||||
{subtitle && <CardDescription>{subtitle}</CardDescription>}
|
||||
</div>
|
||||
{action && <div className="shrink-0">{action}</div>}
|
||||
</CardHeader>
|
||||
|
||||
Reference in New Issue
Block a user