Use zap-stream logo when no image
This commit is contained in:
@ -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">
|
||||||
|
Reference in New Issue
Block a user