From c47f1cabbd63d80282f52e337ebf5d68abeddf9f Mon Sep 17 00:00:00 2001 From: Jason Bahl Date: Wed, 12 Jun 2024 14:36:48 -0600 Subject: [PATCH] fix misc linting issues --- components/Callout.jsx | 2 +- components/DocsSidebarNavigation.jsx | 4 ++-- components/MobileNavigation.jsx | 4 ++-- components/PrimaryNavigation.jsx | 2 +- components/QuickLinks.jsx | 2 +- components/Search.jsx | 4 ++-- components/SiteHeader.jsx | 4 ++-- components/ThemeSelector.jsx | 14 +++++++------- components/ui/accordion.tsx | 2 +- components/ui/context-menu.jsx | 10 +++++----- components/ui/dropdown-menu.tsx | 10 +++++----- components/ui/navigation-menu.tsx | 4 ++-- wp-blocks/AcfFieldTypeSettingsBlock.js | 18 +++++++++--------- 13 files changed, 40 insertions(+), 40 deletions(-) diff --git a/components/Callout.jsx b/components/Callout.jsx index f6e39aa..e459ea9 100644 --- a/components/Callout.jsx +++ b/components/Callout.jsx @@ -27,7 +27,7 @@ export function Callout({ type = 'note', title, children }) { return (
- +

{title} diff --git a/components/DocsSidebarNavigation.jsx b/components/DocsSidebarNavigation.jsx index d1ca716..243d8ed 100644 --- a/components/DocsSidebarNavigation.jsx +++ b/components/DocsSidebarNavigation.jsx @@ -25,7 +25,7 @@ export function DocsSidebarNavigation({ className, data, navigation }) { if (!currentNode) { return false; } - + return section.links.some(link => link.href.includes(currentNode.uri)); }; @@ -61,7 +61,7 @@ export function DocsSidebarNavigation({ className, data, navigation }) { > - + setIsOpen(false)} aria-label="Close navigation" > - + diff --git a/components/PrimaryNavigation.jsx b/components/PrimaryNavigation.jsx index 51981ba..2de4c41 100644 --- a/components/PrimaryNavigation.jsx +++ b/components/PrimaryNavigation.jsx @@ -63,7 +63,7 @@ export function PrimaryNavigation({ navigation }) {

  • diff --git a/components/QuickLinks.jsx b/components/QuickLinks.jsx index 0ea3dee..2e38467 100644 --- a/components/QuickLinks.jsx +++ b/components/QuickLinks.jsx @@ -15,7 +15,7 @@ export function QuickLink({ title, description, href, icon }) {
    - +

    diff --git a/components/Search.jsx b/components/Search.jsx index adcd3f0..c1641e3 100644 --- a/components/Search.jsx +++ b/components/Search.jsx @@ -124,13 +124,13 @@ export function Search({ ...props }) { return (

    diff --git a/components/ThemeSelector.jsx b/components/ThemeSelector.jsx index 6c28da3..dabca58 100644 --- a/components/ThemeSelector.jsx +++ b/components/ThemeSelector.jsx @@ -1,9 +1,9 @@ "use client" - + import { MoonIcon, SunIcon } from "@radix-ui/react-icons" import { useTheme } from "next-themes" import * as React from "react" - + import { Button } from "@/components/ui/button" import { DropdownMenu, @@ -11,16 +11,16 @@ import { DropdownMenuItem, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu" - + export function ModeToggle() { const { setTheme } = useTheme() - + return ( @@ -37,4 +37,4 @@ export function ModeToggle() { ) -} \ No newline at end of file +} diff --git a/components/ui/accordion.tsx b/components/ui/accordion.tsx index 0a65dcc..3a309e9 100644 --- a/components/ui/accordion.tsx +++ b/components/ui/accordion.tsx @@ -34,7 +34,7 @@ const AccordionTrigger = React.forwardRef< {...props} > {children} - + )) diff --git a/components/ui/context-menu.jsx b/components/ui/context-menu.jsx index 946532d..e909b9b 100644 --- a/components/ui/context-menu.jsx +++ b/components/ui/context-menu.jsx @@ -26,7 +26,7 @@ const ContextMenuSubTrigger = React.forwardRef(({ className, inset, children, .. )} {...props}> {children} - + )) ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName @@ -76,9 +76,9 @@ const ContextMenuCheckboxItem = React.forwardRef(({ className, children, checked )} checked={checked} {...props}> - + - + {children} @@ -95,9 +95,9 @@ const ContextMenuRadioItem = React.forwardRef(({ className, children, ...props } className )} {...props}> - + - + {children} diff --git a/components/ui/dropdown-menu.tsx b/components/ui/dropdown-menu.tsx index 6aae945..08a43bd 100644 --- a/components/ui/dropdown-menu.tsx +++ b/components/ui/dropdown-menu.tsx @@ -38,7 +38,7 @@ const DropdownMenuSubTrigger = React.forwardRef< {...props} > {children} - + )) DropdownMenuSubTrigger.displayName = @@ -110,9 +110,9 @@ const DropdownMenuCheckboxItem = React.forwardRef< checked={checked} {...props} > - + - + {children} @@ -133,9 +133,9 @@ const DropdownMenuRadioItem = React.forwardRef< )} {...props} > - + - + {children} diff --git a/components/ui/navigation-menu.tsx b/components/ui/navigation-menu.tsx index d45d53d..154ba3a 100644 --- a/components/ui/navigation-menu.tsx +++ b/components/ui/navigation-menu.tsx @@ -55,7 +55,7 @@ const NavigationMenuTrigger = React.forwardRef< > {children}{' '}