Skip to content

Commit c3da876

Browse files
authored
Added placeholder image to HelpMenu if links unavailable (#2899)
1 parent 643a9c6 commit c3da876

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

portal-ui/src/placeholderimage.png

33.5 KB
Loading

portal-ui/src/screens/Console/HelpItem.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import React, { Fragment } from "react";
1818
import { DocItem } from "./HelpMenu.types";
1919
import MoreLink from "../../common/MoreLink";
20+
import placeholderImg from "../../placeholderimage.png";
2021

2122
interface IHelpItemProps {
2223
item: DocItem;
@@ -50,7 +51,7 @@ const HelpItem = ({ item, displayImage = true }: IHelpItemProps) => {
5051
style={{
5152
width: 208,
5253
height: 116,
53-
backgroundImage: `url(${item.img})`,
54+
backgroundImage: `url(${item.img}), url(${placeholderImg})`,
5455
backgroundPosition: "center center",
5556
backgroundSize: "cover",
5657
backgroundRepeat: "no-repeat",

0 commit comments

Comments
 (0)