mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
render debug if local storage item is presented
This commit is contained in:
parent
f456a40be1
commit
96b8413055
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user