Skip to content

Commit

Permalink
alt tags added
Browse files Browse the repository at this point in the history
relates #38
  • Loading branch information
tundeaji1232 committed Feb 15, 2018
1 parent 0bb01df commit 81f7e50
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions client/src/helper/fileImages.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@ export default (file)=> {
switch (file.filetype) {

case "video/mp4": {
return (<img className="img-container" src={mp4} />);
return (<img className="img-container" src={mp4} alt={`${file.filetype}`} />);
}
case "application/pdf": {
return (<img className="img-container" src={pdf} />);
return (<img className="img-container" src={pdf} alt={`${file.filetype}`} />);
}
case "video/webm": {
return ( <img className="img-container" src={webm} />);
return ( <img className="img-container" src={webm} alt={`${file.filetype}`} />);
}
case "application/zip": {
return ( <img className="img-container" src={zip} />);
return ( <img className="img-container" src={zip} alt={`${file.filetype}`} />);
}
case "image/jpeg": {
return ( <img className="img-container" src={picture} />);
return ( <img className="img-container" src={picture} alt={`${file.filetype}`} />);
}

case null: {
return ( <img className="img-container" src={link} />);
return ( <img className="img-container" src={link} alt={`${file.filetype}`} />);
}

case "": {
return ( <img className="img-container" src={link} />);
return ( <img className="img-container" src={link} alt={`${file.filetype}`} />);
}
default: {
return <div>No asset</div>;
Expand Down

0 comments on commit 81f7e50

Please sign in to comment.