Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
p6l-richard committed Oct 23, 2024
1 parent 967bd7c commit 312075b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function FAQ(props: {
<div className="mx-auto md:max-w-[800px]">
<Accordion type="single" collapsible className="w-full">
{props.items.map((item) => (
<AccordionItem value={item.question}>
<AccordionItem value={item.question} key={item.question}>
<AccordionTrigger className="justify-between space-x-2">
{item.question}
</AccordionTrigger>
Expand Down
9 changes: 4 additions & 5 deletions apps/www/app/glossary/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ import { MeteorLinesAngular } from "@/components/ui/meteorLines";
import { authors } from "@/content/blog/authors";
import { cn } from "@/lib/utils";
import { allGlossaries } from "content-collections";
import type { Glossary } from "content-collections";
import { Zap } from "lucide-react";
import type { Metadata } from "next";
import Link from "next/link";
import { notFound } from "next/navigation";
import { FAQ } from "./_faq";
import Takeaways from "./_takeaways";
import { FAQ } from "./faq";
import Takeaways from "./takeaways";
import TermsRolodexDesktop from "@/components/glossary/terms-rolodex-desktop";
import { FilterableCommand } from "@/components/glossary/search";

Expand All @@ -30,7 +29,7 @@ export function generateMetadata({
}: {
params: { slug: string };
}): Metadata {
const term = allGlossaries.find((term) => term.slug === `${params.slug}`);
const term = allGlossaries.find((term) => term.slug === params.slug);
if (!term) {
notFound();
}
Expand Down Expand Up @@ -75,7 +74,7 @@ const terms = [
];

const GlossaryTermWrapper = async ({ params }: { params: { slug: string } }) => {
const term = allGlossaries.find((term) => term.slug === `${params.slug}`) as Glossary;
const term = allGlossaries.find((term) => term.slug === params.slug);
if (!term) {
notFound();
}
Expand Down
File renamed without changes.

0 comments on commit 312075b

Please sign in to comment.