refactor: batch 3

This commit is contained in:
鲁树人 committed 2025-05-18 02:41:20 +09:00
1 parent 75b43e1e84
commit 2e4e57be45
52 files changed
+933 -1136

No files matched your search

+2 -8
View File
@@ -1,9 +1,3 @@
import { Mark } from '@chakra-ui/react';
export function HiWord({ children }: { children: React.ReactNode }) {
return (
<Mark bg="orange.100" borderRadius={5} px={2} mx={1}>
{children}
</Mark>
);
export function HiWord({ className = '', children }: { className?: string; children: React.ReactNode }) {
return <mark className={`bg-orange-100 rounded-md px-2 mx-1 ${className}`}>{children}</mark>;
}