mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
modify operations in app list
This commit is contained in:
@ -17,7 +17,6 @@ type IPopover = {
|
||||
btnElement?: string | React.ReactNode
|
||||
btnClassName?: string | ((open: boolean) => string)
|
||||
manualClose?: boolean
|
||||
onTriggerClick?: () => void
|
||||
}
|
||||
|
||||
const timeoutDuration = 100
|
||||
@ -31,7 +30,6 @@ export default function CustomPopover({
|
||||
className,
|
||||
btnClassName,
|
||||
manualClose,
|
||||
onTriggerClick,
|
||||
}: IPopover) {
|
||||
const buttonRef = useRef<HTMLButtonElement>(null)
|
||||
const timeOutRef = useRef<NodeJS.Timeout | null>(null)
|
||||
@ -68,10 +66,6 @@ export default function CustomPopover({
|
||||
? btnClassName
|
||||
: btnClassName?.(open)
|
||||
}`}
|
||||
onClick={() => {
|
||||
if (!open)
|
||||
onTriggerClick && onTriggerClick()
|
||||
}}
|
||||
>
|
||||
{btnElement}
|
||||
</Popover.Button>
|
||||
|
||||
Reference in New Issue
Block a user