This commit is contained in:
Alexis Werefox 2021-06-11 08:55:53 +00:00
parent 57d03f2542
commit 677e247290
2 changed files with 7 additions and 8 deletions

View File

@ -1,16 +1,15 @@
import FCard from "./faq-card";
import { FAQS } from "../js/variables";
export default function FAQBlock() {
export default function FAQBlock({ faqs }) {
return (
<>
{Object.keys(FAQS).map((faq) => (
{Object.keys(faqs).map((faq) => (
<FCard
key={faq}
question={FAQS[faq].question}
answer={FAQS[faq].answer}
src={FAQS[faq].src}
alt={FAQS[faq].alt}
question={faqs[faq].question}
answer={faqs[faq].answer}
src={faqs[faq].src}
alt={faqs[faq].alt}
/>
))}
</>

View File

@ -23,7 +23,7 @@ export async function getStaticProps() {
export default function FAQ({ FAQ }) {
return (
<BasicPage page_title="FAQ" card_title="Frequently Asked Questions!">
<FBlock faq={FAQ} />
<FBlock faqs={FAQ} />
</BasicPage>
);
}