[dyad] Restored FAQ schema labels - wrote 1 file(s)
This commit is contained in:
@@ -105,9 +105,19 @@ const FaqQuestion = ({ item }: { item: any }) => {
|
|||||||
item.acceptedAnswer?.text
|
item.acceptedAnswer?.text
|
||||||
) {
|
) {
|
||||||
return (
|
return (
|
||||||
<div className="p-2 border rounded-md bg-background text-sm">
|
<div className="p-2 border rounded-md bg-background text-sm space-y-1">
|
||||||
<p className="font-semibold text-muted-foreground">{item.name}</p>
|
<div className="grid grid-cols-[auto_1fr] gap-x-2 items-baseline">
|
||||||
<p className="mt-1 text-foreground">{item.acceptedAnswer.text}</p>
|
<strong className="font-semibold text-muted-foreground">
|
||||||
|
Question:
|
||||||
|
</strong>
|
||||||
|
<p className="text-foreground">{item.name}</p>
|
||||||
|
</div>
|
||||||
|
<div className="grid grid-cols-[auto_1fr] gap-x-2 items-baseline">
|
||||||
|
<strong className="font-semibold text-muted-foreground">
|
||||||
|
Answer:
|
||||||
|
</strong>
|
||||||
|
<p className="text-foreground">{item.acceptedAnswer.text}</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user