feat: FAQ controller made
This commit is contained in:
@@ -13,7 +13,11 @@ import img3 from '@asset/img/Bespoke/Shrek.jpg';
|
||||
import img2 from '@asset/img/Bespoke/Swarovsky embedded wall hang.jpg';
|
||||
import { Head, Link } from '@inertiajs/react';
|
||||
|
||||
export default function Faq() {
|
||||
export default function Faq({
|
||||
faq,
|
||||
}: {
|
||||
faq: [{ id: number; question: string; answer: string }];
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<Layout>
|
||||
@@ -67,7 +71,7 @@ export default function Faq() {
|
||||
type="single"
|
||||
collapsible
|
||||
className="w-full"
|
||||
defaultValue="item-1"
|
||||
defaultValue="1"
|
||||
>
|
||||
{faq.map((item) => (
|
||||
<AccordionItem value={`${item.id}`}>
|
||||
|
||||
Reference in New Issue
Block a user