fix : remove unused colum in database
This commit is contained in:
@@ -50,7 +50,6 @@ type GuideCard = {
|
||||
rarity: number | null;
|
||||
updatedAt: Date;
|
||||
publishedAt: Date | null;
|
||||
publishedCatalogVersion: string | null;
|
||||
};
|
||||
|
||||
const elementLabels: Record<string, string> = {
|
||||
@@ -160,9 +159,6 @@ export function StructuredDirectory({ guides }: { guides: GuideCard[] }) {
|
||||
<CardDescription className="line-clamp-3">
|
||||
{guide.overview}
|
||||
</CardDescription>
|
||||
<div className="flex flex-wrap gap-2 pt-2">
|
||||
{guide.publishedCatalogVersion ? <Badge variant="outline">v{guide.publishedCatalogVersion}</Badge> : null}
|
||||
</div>
|
||||
</CardHeader>
|
||||
</Card>
|
||||
</Link>
|
||||
|
||||
@@ -207,12 +207,10 @@ function GuideOverview({
|
||||
<h1 className="font-heading text-4xl font-bold">{guide.name}</h1>
|
||||
<p className="text-lg font-semibold">{guide.overview}</p>
|
||||
<div className="flex flex-wrap justify-center gap-2">
|
||||
{guide.publishedCatalogVersion ? <Badge variant="outline">เวอร์ชัน {guide.publishedCatalogVersion}</Badge> : null}
|
||||
<Badge variant="secondary">
|
||||
อัปเดต {new Date(guide.publishedAt ?? guide.updatedAt).toLocaleDateString("th-TH")}
|
||||
</Badge>
|
||||
</div>
|
||||
{guide.publicationNote ? <p className="text-sm text-muted-foreground">{guide.publicationNote}</p> : null}
|
||||
</div>
|
||||
<div className="grid items-start gap-6 lg:grid-cols-2">
|
||||
<div className="order-1 relative aspect-square w-full overflow-hidden rounded-xl border bg-muted lg:col-start-1 lg:row-start-1">
|
||||
|
||||
Reference in New Issue
Block a user