More srcset

This commit is contained in:
J. Ryan Stinnett 2019-09-19 11:46:18 +01:00
parent 548290a6ba
commit 1dbfa6929d

View file

@ -358,10 +358,17 @@ export default React.createClass({
} }
if (!instructions) return null; if (!instructions) return null;
let logo;
if (typeof client.logo === "string") {
logo = <img src={client.logo} />;
} else {
logo = <img {...client.logo} />;
}
return ( return (
<div key={ client.name } className="mxt_HomePage_link"> <div key={ client.name } className="mxt_HomePage_link">
<div className="mxt_HomePage_link_logo"> <div className="mxt_HomePage_link_logo">
<a href={ client.homepage }><img src={ client.logo }/></a> <a href={ client.homepage }>{ logo }</a>
</div> </div>
<div className="mxt_HomePage_link_name"> <div className="mxt_HomePage_link_name">
<a href={ client.homepage }>{ client.name }</a> <a href={ client.homepage }>{ client.name }</a>