Skip to content

Commit

Permalink
Revise implementation to insert testimonial image
Browse files Browse the repository at this point in the history
  • Loading branch information
HelNershingThapa authored and tsmock committed Jul 5, 2023
1 parent 0b230e0 commit 73e0f86
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions frontend/src/components/homepage/testimonials.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import { FormattedMessage } from 'react-intl';

import messages from './messages';
import IfrcImage from '../../assets/img/testimonials/ifrc.jpg';
// import {RightIcon, LeftIcon} from '../../svgIcons';

export function Testimonials() {
Expand All @@ -11,7 +12,7 @@ export function Testimonials() {
bio: messages.ifrcBio,
citation: messages.ifrcCitation,
cssCode: 'ifrc',
image: '.../../images/ifrc.png',
image: IfrcImage,
},
];

Expand All @@ -30,11 +31,7 @@ export function Testimonials() {
<div className="testimony relative" key={person.name}>
{/* <div key={n} className={`blue-dark testimonial-${person.cssCode} relative`} /> */}
<div className="testimonial-image-parent">
<img
className="testimonial-image"
src={require('../../assets/img/testimonials/ifrc.jpg').default}
alt={person.name}
/>
<img className="testimonial-image" src={person.image} alt={person.name} />
</div>
<div className="citation-ctr">
<p className="bg-red white pv2 pl3 pr1 citation ma0 relative">
Expand Down

0 comments on commit 73e0f86

Please sign in to comment.