fix: add code lost in rebase
This commit is contained in:
@@ -2,15 +2,10 @@
|
|||||||
|
|
||||||
import { useIsSSR } from "@react-aria/ssr"
|
import { useIsSSR } from "@react-aria/ssr"
|
||||||
import { useContext, useState } from "react"
|
import { useContext, useState } from "react"
|
||||||
import {
|
import { Dialog, Modal, ModalOverlay } from "react-aria-components"
|
||||||
Dialog,
|
|
||||||
DialogTrigger,
|
|
||||||
Modal,
|
|
||||||
ModalOverlay,
|
|
||||||
} from "react-aria-components"
|
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
import { CloseIcon } from "@/components/Icons"
|
import { CloseLargeIcon } from "@/components/Icons"
|
||||||
import { SidePeekContext } from "@/components/SidePeekProvider"
|
import { SidePeekContext } from "@/components/SidePeekProvider"
|
||||||
|
|
||||||
import Button from "../Button"
|
import Button from "../Button"
|
||||||
@@ -57,7 +52,9 @@ function SidePeek({
|
|||||||
<ModalOverlay
|
<ModalOverlay
|
||||||
UNSTABLE_portalContainer={rootDiv}
|
UNSTABLE_portalContainer={rootDiv}
|
||||||
className={styles.overlay}
|
className={styles.overlay}
|
||||||
isOpen={isOpen || contentKey === context?.activeSidePeek}
|
isOpen={
|
||||||
|
isOpen || (!!contentKey && contentKey === context?.activeSidePeek)
|
||||||
|
}
|
||||||
onOpenChange={onClose}
|
onOpenChange={onClose}
|
||||||
isDismissable
|
isDismissable
|
||||||
>
|
>
|
||||||
@@ -81,7 +78,7 @@ function SidePeek({
|
|||||||
intent="text"
|
intent="text"
|
||||||
onPress={onClose}
|
onPress={onClose}
|
||||||
>
|
>
|
||||||
<CloseIcon color="burgundy" height={32} width={32} />
|
<CloseLargeIcon color="burgundy" />
|
||||||
</Button>
|
</Button>
|
||||||
</header>
|
</header>
|
||||||
<div className={styles.sidePeekContent}>{children}</div>
|
<div className={styles.sidePeekContent}>{children}</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user