File tree Expand file tree Collapse file tree
src/deprecated/use-drawer Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { FC , useMemo , useState } from 'react'
2- import { DeprecatedDrawer as Drawer , DrawerProps } from '../drawer'
2+ import { DeprecatedDrawer as Drawer , DeprecatedDrawerProps } from '../drawer'
33import { Portal } from '../use-portal'
44
55/** @deprecated */
66export type UseDrawer = [
7- Drawer : FC < Partial < DrawerProps > > ,
7+ Drawer : FC < Partial < DeprecatedDrawerProps > > ,
88 openDrawer : ( ) => void ,
99 closeDrawer : ( ) => void ,
1010 drawerIsOpen : boolean ,
@@ -18,7 +18,7 @@ export const useDrawer = (id?: string): UseDrawer => {
1818 const closeDrawer = ( ) => setDrawerIsOpen ( false )
1919 const openDrawer = ( ) => setDrawerIsOpen ( true )
2020
21- const DrawerComponent : FC < Partial < DrawerProps > > = ( {
21+ const DrawerComponent : FC < Partial < DeprecatedDrawerProps > > = ( {
2222 children,
2323 isOpen = drawerIsOpen ,
2424 onDrawerClose = closeDrawer ,
You can’t perform that action at this time.
0 commit comments