Skip to content

Commit

Permalink
Merge branch 'v2024'
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdburdick committed Jun 5, 2024
2 parents 7b2d62f + 213cc27 commit 38a1d4d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/components/global/MobileNav.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import { buttonVariants, Button } from "@/components/ui/button";
"use client"
import { buttonVariants, Button } from "@/components/ui/button"
import {
Drawer,
DrawerClose,
Expand All @@ -9,18 +9,18 @@ import {
DrawerHeader,
DrawerTitle,
DrawerTrigger,
} from "@/components/ui/drawer";
} from "@/components/ui/drawer"

import { ContactLink } from "@/lib/types";
import { cn } from "@/lib/utils";
import { ContactLink } from "@/lib/types"
import { cn } from "@/lib/utils"

type Props = {
className?: string;
links: ContactLink[];
};
className?: string
links: ContactLink[]
}

export default function MobileNav(props: Props) {
const { className = "", links: linksProp = [] } = props;
const { className = "", links: linksProp = [] } = props

const links = linksProp.map(({ url, label }, index: number) => (
<li key={index}>
Expand All @@ -30,13 +30,13 @@ export default function MobileNav(props: Props) {
rel="noreferrer"
className={cn(
buttonVariants({ variant: "default", size: "lg" }),
"w-full text-lg",
"w-full text-lg"
)}
>
{label}
</a>
</li>
));
))

return (
<Drawer>
Expand Down Expand Up @@ -84,5 +84,5 @@ export default function MobileNav(props: Props) {
</div>
</DrawerContent>
</Drawer>
);
)
}

0 comments on commit 38a1d4d

Please sign in to comment.