Use zap-stream logo when no image

This commit is contained in:
2023-07-07 16:03:10 +01:00
parent 3ac81af641
commit 1081b6fdb3

View File

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