mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2025-12-16 20:49:23 +00:00
refactor: only a small tweak
This commit is contained in:
@@ -9,9 +9,7 @@ import { toolGroups } from "@/config/tools";
|
||||
import { ToolGroup } from "./tool-group";
|
||||
|
||||
const isGroupedTool = (path: string) =>
|
||||
Object.values(toolGroups)
|
||||
.map(({ href }) => href as string)
|
||||
.some(group => path.startsWith(`${group}/`));
|
||||
Object.values(toolGroups).some(({ href }) => path.startsWith(`${href}/`));
|
||||
|
||||
export function ToolGroups() {
|
||||
const pathname = usePathname();
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import { clsx, type ClassValue } from "clsx";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs));
|
||||
}
|
||||
export const cn = (...inputs: ClassValue[]) => twMerge(clsx(inputs));
|
||||
|
||||
Reference in New Issue
Block a user