Added Prettier fixes for NFTArt (#20752)
Co-authored-by: Will Roeder <roederw@wills-mbp.lan>
This commit is contained in:
parent
231b58b5f1
commit
2c60c48eb2
|
@ -40,7 +40,7 @@ const ViewOriginalArtContentLink = ({ src }: { src: string }) => {
|
||||||
<a href={src}>VIEW ORIGINAL</a>
|
<a href={src}>VIEW ORIGINAL</a>
|
||||||
</h6>
|
</h6>
|
||||||
);
|
);
|
||||||
}
|
};
|
||||||
|
|
||||||
const CachedImageContent = ({ uri }: { uri?: string }) => {
|
const CachedImageContent = ({ uri }: { uri?: string }) => {
|
||||||
const [isLoading, setIsLoading] = useState<boolean>(true);
|
const [isLoading, setIsLoading] = useState<boolean>(true);
|
||||||
|
@ -93,9 +93,7 @@ const CachedImageContent = ({ uri }: { uri?: string }) => {
|
||||||
setShowError(true);
|
setShowError(true);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{uri && (
|
{uri && <ViewOriginalArtContentLink src={uri} />}
|
||||||
<ViewOriginalArtContentLink src={uri} />
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
@ -139,7 +137,7 @@ const VideoArtContent = ({
|
||||||
|
|
||||||
const content =
|
const content =
|
||||||
likelyVideo &&
|
likelyVideo &&
|
||||||
likelyVideo.startsWith("https://watch.videodelivery.net/") ? (
|
likelyVideo.startsWith("https://watch.videodelivery.net/") ? (
|
||||||
<div className={"d-block"}>
|
<div className={"d-block"}>
|
||||||
<Stream
|
<Stream
|
||||||
streamRef={(e: any) => playerRef(e)}
|
streamRef={(e: any) => playerRef(e)}
|
||||||
|
@ -156,7 +154,9 @@ const VideoArtContent = ({
|
||||||
autoplay={true}
|
autoplay={true}
|
||||||
muted={true}
|
muted={true}
|
||||||
/>
|
/>
|
||||||
<ViewOriginalArtContentLink src={likelyVideo.replace("https://watch.videodelivery.net/", "")} />
|
<ViewOriginalArtContentLink
|
||||||
|
src={likelyVideo.replace("https://watch.videodelivery.net/", "")}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className={"d-block"}>
|
<div className={"d-block"}>
|
||||||
|
@ -182,7 +182,7 @@ const VideoArtContent = ({
|
||||||
<ViewOriginalArtContentLink src={(likelyVideo || animationURL)!} />
|
<ViewOriginalArtContentLink src={(likelyVideo || animationURL)!} />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)
|
);
|
||||||
|
|
||||||
return content;
|
return content;
|
||||||
};
|
};
|
||||||
|
@ -226,9 +226,7 @@ const HTMLContent = ({
|
||||||
setShowError(true);
|
setShowError(true);
|
||||||
}}
|
}}
|
||||||
></iframe>
|
></iframe>
|
||||||
{htmlURL && (
|
{htmlURL && <ViewOriginalArtContentLink src={htmlURL} />}
|
||||||
<ViewOriginalArtContentLink src={htmlURL} />
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in New Issue