Merge pull request #917 from hackclub/fixes-and-stuff

Fix organization modals without logos on /hcb/climate
This commit is contained in:
yodalightsabr 2023-09-19 15:31:52 -07:00 committed by GitHub
commit ce349481d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -610,17 +610,19 @@ export default function ClimatePage({ rawOrganizations, pageRegion }) {
justifyContent: 'start'
}}
>
<img
alt={`${modalOrganization.name}'s logo`}
src={modalOrganization.branding.logo}
sx={{
width: '100px',
height: '100px',
borderRadius: '8px',
marginRight: [0, 4, 4],
boxShadow: '0px 0px 45px 0px rgba(0, 0, 0, 0.72)'
}}
/>
{modalOrganization.branding.logo &&
<img
alt={`${modalOrganization.name}'s logo`}
src={modalOrganization.branding.logo}
sx={{
width: '100px',
height: '100px',
borderRadius: '8px',
marginRight: [0, 4, 4],
boxShadow: '0px 0px 45px 0px rgba(0, 0, 0, 0.72)'
}}
/>
}
<Text
variant="title"
sx={{