Skip to content

Commit d9ea269

Browse files
author
Kurt Doherty
authored
fix: reference to non-existent DrawerProps (#775)
1 parent 39e01c3 commit d9ea269

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/deprecated/use-drawer/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { FC, useMemo, useState } from 'react'
2-
import { DeprecatedDrawer as Drawer, DrawerProps } from '../drawer'
2+
import { DeprecatedDrawer as Drawer, DeprecatedDrawerProps } from '../drawer'
33
import { Portal } from '../use-portal'
44

55
/** @deprecated */
66
export 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,

0 commit comments

Comments
 (0)