Skip to content

Commit

Permalink
Merge branch 'feat/responsive-nav' into v2024
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdburdick committed Jun 5, 2024
2 parents 075de4d + 35e56a0 commit 81f0131
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 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[];
};

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 @@ -36,7 +36,7 @@ export default function MobileNav(props: Props) {
{label}
</a>
</li>
))
));

return (
<Drawer>
Expand All @@ -47,7 +47,7 @@ export default function MobileNav(props: Props) {
className="rounded-full text-heading-xs py-4"
>
<span className="flex items-center gap-2">
Let's Connect
Let&apos;s Connect
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
Expand All @@ -68,7 +68,7 @@ export default function MobileNav(props: Props) {
<DrawerContent>
<div className="mx-auto w-full max-w-md">
<DrawerHeader>
<DrawerTitle>Let's connect</DrawerTitle>
<DrawerTitle>Let&apos;s connect</DrawerTitle>
<DrawerDescription>
Find me on social media or send me an email
</DrawerDescription>
Expand All @@ -84,5 +84,5 @@ export default function MobileNav(props: Props) {
</div>
</DrawerContent>
</Drawer>
)
);
}

0 comments on commit 81f0131

Please sign in to comment.