Skip to content

Commit

Permalink
fix placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
jnakaso committed Oct 12, 2024
1 parent 8a67068 commit cc04a95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/pages/evaluation/InfoPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ import { projectService } from "../../services/projectService";
import useVolunteers from "../../services/useVolunteers";
import TaskGroupDialog from "./taskGroupDialog";
import { Volunteer } from "../../services/dasVolunteerService";
import placeholder from '../../assets/images/project-image.png';

const DescriptionSection = (props: { venture: any }) => {
return (
<Stack direction={'row'} spacing={2}>
<CardMedia
component='img'
image={props.venture.imageSrc ? props.venture.imageSrc : '../../assets/images/project-image.png'}
image={props.venture.imageSrc ? props.venture.imageSrc : placeholder}
alt={props.venture.title + " logo"}
sx={{
objectFit: 'contain',
Expand Down
4 changes: 2 additions & 2 deletions src/pages/evaluations/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { LoadingContext } from '../../components/contexts/LoadingContext';
import { RefreshContext } from '../../components/contexts/RefreshContext';
import { VentureProps } from '../../services/dasVentureService';
import { projectService } from '../../services/projectService';

import placeholder from '../../assets/images/project-image.png';

const VentureCard: React.FC<VentureProps> = ({ venture }) => {
const theme = useTheme();
Expand All @@ -40,7 +40,7 @@ const VentureCard: React.FC<VentureProps> = ({ venture }) => {
<Card sx={{ display: 'flex', padding: '2' }} onClick={() => navigate(`/evaluation/${venture.id}`)}>
<CardMedia
component='img'
image={venture.imageSrc ? venture.imageSrc : '../../assets/images/project-image.png'}
image={venture.imageSrc ? venture.imageSrc : placeholder}
alt={venture.title + " logo"}
sx={{
objectFit: 'contain',
Expand Down

0 comments on commit cc04a95

Please sign in to comment.