Skip to content

Commit

Permalink
fix: apply configured icon background (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyhogoboom authored Nov 22, 2024
1 parent 12538c1 commit 0a426b5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/web-shared/components/Profile/Profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ const Profile = ({ theme, handleCloseProfile, ...rest }) => {
setImgSrc('');
};

const { colors } = JSON.parse(currentChurch?.theme) || {};

return (
<>
<Styled.Profile ref={ref}>
Expand Down Expand Up @@ -214,7 +216,10 @@ const Profile = ({ theme, handleCloseProfile, ...rest }) => {
justifyContent="center"
alignItems="center"
>
<Logo source={currentChurch?.logo} />
<Logo
source={currentChurch?.logo}
{...(colors?.iconBackground ? { backgroundColor: colors?.iconBackground } : {})}
/>
</Box>
<H4 mb="xxs">{rest.adTitle || 'Stay Connected'}</H4>
<BodyText maxWidth="285px" textAlign="center" mb="l">
Expand Down

0 comments on commit 0a426b5

Please sign in to comment.