lanjianrong hace 3 años
padre
commit
56b797731e
Se han modificado 1 ficheros con 2 adiciones y 3 borrados
  1. 2 3
      src/components/AnimateContent/index.tsx

+ 2 - 3
src/components/AnimateContent/index.tsx

@@ -1,12 +1,11 @@
-import { Button, Drawer } from 'antd'
+import { Drawer } from 'antd'
 import type { DrawerProps } from 'antd'
-import { useState } from 'react'
 import type { PropsWithChildren, FC } from 'react'
 import styles from './index.less'
 type AnimateContentProps = {
   visible: boolean
   onVisibleChange: (visible: boolean) => void
-} & DrawerProps
+} & Omit<DrawerProps, 'visible' | 'onVisibleChange'>
 
 const AnimateContent: FC<PropsWithChildren<AnimateContentProps>> = ({
   visible,