Added placeholder image to HelpMenu if links unavailable (#2899)

This commit is contained in:
jinapurapu
2023-06-22 12:12:13 -07:00
committed by GitHub
parent 643a9c6c7c
commit c3da876b04
2 changed files with 2 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@@ -17,6 +17,7 @@
import React, { Fragment } from "react";
import { DocItem } from "./HelpMenu.types";
import MoreLink from "../../common/MoreLink";
import placeholderImg from "../../placeholderimage.png";
interface IHelpItemProps {
item: DocItem;
@@ -50,7 +51,7 @@ const HelpItem = ({ item, displayImage = true }: IHelpItemProps) => {
style={{
width: 208,
height: 116,
backgroundImage: `url(${item.img})`,
backgroundImage: `url(${item.img}), url(${placeholderImg})`,
backgroundPosition: "center center",
backgroundSize: "cover",
backgroundRepeat: "no-repeat",