Use zap-stream logo when no image

This commit is contained in:
Kieran 2023-07-07 16:03:10 +01:00
parent 3ac81af641
commit 1081b6fdb3
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -7,6 +7,7 @@ import { StatePill } from "./state-pill";
import { StreamState } from "index";
import { findTag, getHost } from "utils";
import { formatSats } from "number";
import ZapStream from "../../public/zap-stream.svg";
export function VideoTile({
ev,
@ -36,7 +37,7 @@ export function VideoTile({
<Link to={`/${link}`} className="video-tile" ref={ref}>
<div
style={{
backgroundImage: `url(${inView ? image : ""})`,
backgroundImage: `url(${inView ? ((image?.length ?? 0) > 0 ? image : ZapStream) : ""})`,
}}
>
<span className="pill-box">