refactor: unified cn utils (#29916)

Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
This commit is contained in:
Stephen Zhou
2025-12-19 12:08:34 +08:00
committed by GitHub
parent 80f11471ae
commit a26881cb24
815 changed files with 1064 additions and 1227 deletions

View File

@@ -1,6 +1,6 @@
import { useState } from 'react'
import { ChevronDownIcon, ChevronRightIcon } from '@heroicons/react/24/outline'
import classNames from '@/utils/classnames'
import { cn } from '@/utils/classnames'
export type IItem = {
key: string
@@ -25,7 +25,7 @@ const Collapse = ({
const toggle = () => setOpen(!open)
return (
<div className={classNames('overflow-hidden rounded-xl bg-background-section-burn', wrapperClassName)}>
<div className={cn('overflow-hidden rounded-xl bg-background-section-burn', wrapperClassName)}>
<div className='flex cursor-pointer items-center justify-between px-3 py-2 text-xs font-medium leading-[18px] text-text-secondary' onClick={toggle}>
{title}
{