fix(panel-wrapper): rename react modal import to modal

This commit is contained in:
RadoslavDimchev 2024-04-15 16:13:25 +03:00 committed by Radoslav Dimchev
parent e6813ff195
commit cf97c7a26e
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import { Text } from '@status-im/components' import { Text } from '@status-im/components'
import { ExpandRsIcon } from '@status-im/icons' import { ExpandRsIcon } from '@status-im/icons'
import { useState } from 'react' import { useState } from 'react'
import ReactModal from 'react-modal' import Modal from 'react-modal'
import { useNavigate, useParams } from 'react-router-dom' import { useNavigate, useParams } from 'react-router-dom'
import { XStack, YStack } from 'tamagui' import { XStack, YStack } from 'tamagui'
@ -23,7 +23,7 @@ const PanelWrapper = ({ children, title }: PanelWrapperProps) => {
} }
return ( return (
<ReactModal <Modal
isOpen={isModalOpen} isOpen={isModalOpen}
onRequestClose={closeModal} onRequestClose={closeModal}
style={{ style={{
@ -52,7 +52,7 @@ const PanelWrapper = ({ children, title }: PanelWrapperProps) => {
</XStack> </XStack>
{children} {children}
</YStack> </YStack>
</ReactModal> </Modal>
) )
} }