diff --git a/web/src/components/IconBtn.tsx b/web/src/components/IconBtn.tsx index b7a2dcee..c2b7be2e 100644 --- a/web/src/components/IconBtn.tsx +++ b/web/src/components/IconBtn.tsx @@ -1,11 +1,9 @@ import { Button, ButtonProps, Tooltip } from 'antd'; +import clsx from 'clsx'; import React from 'react'; import { isValidStr } from 'tailchat-shared'; import { Icon } from './Icon'; -const btnClassName = - 'border-0 bg-black bg-opacity-20 text-white text-opacity-80 hover:text-opacity-100 hover:bg-opacity-60'; - type IconBtnShapeType = 'circle' | 'square'; function calcShape( @@ -35,7 +33,17 @@ export const IconBtn: React.FC = React.memo( ); const btnEl = ( -