11import * as React from "react" ;
22import { Link , useSubmit } from "react-router" ;
3- import classNames from "classnames " ;
3+ import { clsx } from "clsx " ;
44
55import iconsHref from "~/icons.svg" ;
66
@@ -104,7 +104,7 @@ function MenuCategoryDetails({
104104
105105 return (
106106 < details
107- className = { classNames ( className , "relative flex flex-col" ) }
107+ className = { clsx ( className , "relative flex flex-col" ) }
108108 open = { isOpen }
109109 onToggle = { ( e ) => {
110110 submitMenuCollapse ( e . currentTarget . open ) ;
@@ -163,7 +163,7 @@ function MenuSummary({ children }: { children: React.ReactNode }) {
163163
164164 return (
165165 < summary
166- className = { classNames (
166+ className = { clsx (
167167 sharedClassName ,
168168 "_no-triangle block cursor-pointer select-none" ,
169169 "outline-none focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-red-brand dark:focus-visible:ring-gray-100" ,
@@ -188,7 +188,7 @@ function HeaderMenuLink({
188188 < LinkWithSpinner
189189 to = { to }
190190 className = { ( isActive ) =>
191- classNames (
191+ clsx (
192192 "relative -mx-4 flex items-center justify-between rounded-md px-4 py-3 font-bold" ,
193193 isActive
194194 ? "bg-gray-50 font-semibold text-red-brand dark:bg-gray-800"
@@ -206,7 +206,7 @@ function MenuLink({ prefix, doc }: { prefix: string; doc: MenuDoc }) {
206206 < LinkWithSpinner
207207 to = { prefix + doc . slug }
208208 className = { ( isActive ) =>
209- classNames (
209+ clsx (
210210 "relative -mx-2 flex items-center justify-between rounded-md py-1.5 pl-4 pr-3 lg:text-sm" ,
211211 isActive
212212 ? "bg-gray-50 font-semibold text-red-brand dark:bg-gray-800"
0 commit comments