Skip to content

Commit

Permalink
enabled thumbnails for guided tours
Browse files Browse the repository at this point in the history
- added the Thumbnail deserialized property to the CardItem for guided tours to enable displaying the image sent from the backend
  • Loading branch information
dnenov committed Apr 7, 2024
1 parent 73e1335 commit 95c892a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Learning/GuideGridItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { img } from '../../assets/home.js';
import { startGuidedTour } from '../../functions/utility.js';
import { CardItem } from '../Common/CardItem.jsx';

export function GuideGridItem({ id, Name, Description, Type }) {
export function GuideGridItem({ id, Name, Description, Type, Thumbnail }) {
const triggerStartGuidedTourCommand = () => {
startGuidedTour(Type);
};

return (
<CardItem
imageSrc={img}
imageSrc={Thumbnail || img}
onClick={triggerStartGuidedTourCommand}
tooltipContent={Description}
titleText={Name}
Expand Down

0 comments on commit 95c892a

Please sign in to comment.