Added Prettier fixes for NFTArt (#20752)

Co-authored-by: Will Roeder <roederw@wills-mbp.lan>
This commit is contained in:
Will Roeder 2021-10-17 12:33:05 -07:00 committed by GitHub
parent 231b58b5f1
commit 2c60c48eb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 10 deletions

View File

@ -40,7 +40,7 @@ const ViewOriginalArtContentLink = ({ src }: { src: string }) => {
<a href={src}>VIEW ORIGINAL</a>
</h6>
);
}
};
const CachedImageContent = ({ uri }: { uri?: string }) => {
const [isLoading, setIsLoading] = useState<boolean>(true);
@ -93,9 +93,7 @@ const CachedImageContent = ({ uri }: { uri?: string }) => {
setShowError(true);
}}
/>
{uri && (
<ViewOriginalArtContentLink src={uri} />
)}
{uri && <ViewOriginalArtContentLink src={uri} />}
</div>
</>
)}
@ -139,7 +137,7 @@ const VideoArtContent = ({
const content =
likelyVideo &&
likelyVideo.startsWith("https://watch.videodelivery.net/") ? (
likelyVideo.startsWith("https://watch.videodelivery.net/") ? (
<div className={"d-block"}>
<Stream
streamRef={(e: any) => playerRef(e)}
@ -156,7 +154,9 @@ const VideoArtContent = ({
autoplay={true}
muted={true}
/>
<ViewOriginalArtContentLink src={likelyVideo.replace("https://watch.videodelivery.net/", "")} />
<ViewOriginalArtContentLink
src={likelyVideo.replace("https://watch.videodelivery.net/", "")}
/>
</div>
) : (
<div className={"d-block"}>
@ -182,7 +182,7 @@ const VideoArtContent = ({
<ViewOriginalArtContentLink src={(likelyVideo || animationURL)!} />
)}
</div>
)
);
return content;
};
@ -226,9 +226,7 @@ const HTMLContent = ({
setShowError(true);
}}
></iframe>
{htmlURL && (
<ViewOriginalArtContentLink src={htmlURL} />
)}
{htmlURL && <ViewOriginalArtContentLink src={htmlURL} />}
</div>
</>
)}