fix(panel-wrapper): rename react modal import to modal
This commit is contained in:
parent
e6813ff195
commit
cf97c7a26e
|
@ -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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue