Skip to content

Commit

Permalink
Remove 'heroImgSrc' as it no longer exists in react-core
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamilto committed Feb 28, 2019
1 parent d2528e7 commit 80da9f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion frontend/public/components/about-modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class AboutModal_ extends React.Component {
brandImageAlt={details.logoAlt}
logoImageSrc={details.logoImg}
logoImageAlt={details.logoAlt}
heroImageSrc={details.backgroundImg}
>
<p>OpenShift is Red Hat&apos;s container application platform that allows developers to quickly develop, host,
and scale applications in a cloud environment.</p>
Expand Down
9 changes: 2 additions & 7 deletions frontend/public/components/masthead.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,40 +12,35 @@ import dedicatedLogoImg from '../imgs/openshift-dedicated-logo.svg';
import * as pfBg992 from '../../public/imgs/pfbg_992.jpg';

export const getBrandingDetails = () => {
let backgroundImg, logoImg, logoAlt, productTitle;
let logoImg, logoAlt, productTitle;
// Webpack won't bundle these images if we don't directly reference them, hence the switch
switch (window.SERVER_FLAGS.branding) {
case 'openshift':
backgroundImg = pfBg992;
logoImg = openshiftLogoImg;
logoAlt = 'OpenShift';
productTitle = 'Red Hat OpenShift';
break;
case 'ocp':
backgroundImg = pfBg992;
logoImg = ocpLogoImg;
logoAlt = 'OpenShift Container Platform';
productTitle = 'Red Hat OpenShift Container Platform';
break;
case 'online':
backgroundImg = pfBg992;
logoImg = onlineLogoImg;
logoAlt = 'OpenShift Online';
productTitle = 'Red Hat OpenShift Online';
break;
case 'dedicated':
backgroundImg = pfBg992;
logoImg = dedicatedLogoImg;
logoAlt = 'OpenShift Dedicated';
productTitle = 'Red Hat OpenShift Dedicated';
break;
default:
backgroundImg = pfBg992;
logoImg = okdLogoImg;
logoAlt = 'OKD';
productTitle = 'OKD';
}
return { backgroundImg, logoImg, logoAlt, productTitle };
return { logoImg, logoAlt, productTitle };
};

export const Masthead = ({ onNavToggle }) => {
Expand Down

0 comments on commit 80da9f5

Please sign in to comment.