render debug if local storage item is presented

This commit is contained in:
SrGooglo 2023-07-17 22:44:29 +00:00
parent f456a40be1
commit 96b8413055

View File

@ -1,20 +1,20 @@
import React from "react"
import { Skeleton } from "antd"
import { Carousel } from "react-responsive-carousel"
import { ImageViewer } from "components"
import Plyr from "plyr-react"
import mimetypes from "mime"
import ContentFailed from "../contentFailed"
import BearCarousel, { BearSlideCard } from "bear-react-carousel"
import BearCarousel from "bear-react-carousel"
import "bear-react-carousel/dist/index.css"
import "react-responsive-carousel/lib/styles/carousel.min.css"
import "plyr-react/dist/plyr.css"
import "./index.less"
const renderDebug = localStorage.getItem("render_debug") === "true"
const Attachment = React.memo((props) => {
const [loaded, setLoaded] = React.useState(false)
@ -161,7 +161,7 @@ export default React.memo((props) => {
isEnablePagination
setController={setController}
onSlideChange={setCarouselState}
isDebug
isDebug={renderDebug}
/>
}
</div>