Skip to content

Commit

Permalink
Fixed drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
epessina committed Jul 23, 2024
1 parent a9c096e commit 56942c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/Drawer/Drawer.Title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

import { ReactElement, useCallback, useMemo } from 'react'
import { PiBookOpen } from 'react-icons/pi'

import { Button } from '../Button'
import { H4 } from '../Typography/HX/H4'
Expand All @@ -28,7 +29,7 @@ export const Title = ({ docLink, title }: TitleProps): ReactElement => {
const { palette } = useTheme()

const docLinkIcon = useMemo(() => (
<Icon color={palette?.action?.link?.active} name="PiBookOpen" size={16} />
<Icon color={palette?.action?.link?.active} component={PiBookOpen} size={16} />
), [palette?.action?.link?.active])

const onClickDocLink = useCallback(() => window.open(docLink, '_blank'), [docLink])
Expand Down
3 changes: 2 additions & 1 deletion src/components/Drawer/Drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

import { Drawer as AntdDrawer } from 'antd'
import { PiX } from 'react-icons/pi'
import { ReactElement } from 'react'

import { DrawerProps } from './Drawer.props'
Expand All @@ -26,7 +27,7 @@ import { Title } from './Drawer.Title'
import styles from './Drawer.module.css'

const DRAWER_WIDTH = 512
const closeIcon = <Icon color="currentColor" name="PiX" size={16} />
const closeIcon = <Icon color="currentColor" component={PiX} size={16} />

export const Drawer = ({
children,
Expand Down

0 comments on commit 56942c5

Please sign in to comment.