Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1081 | Org Header | expanded for first/text…
Browse files Browse the repository at this point in the history
…/about tabs only
  • Loading branch information
snyaggarwal committed Nov 8, 2021
1 parent e0e7a3c commit 78c05ce
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/orgs/HomeHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const HomeHeader = ({

const tab = rest.tab
const selectedTabConfig = config.config.tabs[tab];
const isExpandedHeader = tab === 0 && includes(['text', 'about'], get(selectedTabConfig, 'type'))
const isExpandedHeader = tab === 0 || includes(['text', 'about'], get(selectedTabConfig, 'type'));
const showLogo = has(config, 'config.header.logo') ?
config.config.header.logo : true;
const showControls = !isExpandedHeader || has(config, 'config.header.controls') ? config.config.header.controls : true;
Expand Down Expand Up @@ -103,7 +103,6 @@ const HomeHeader = ({
return isBoolean(attributes) ? DEFAULT_VISIBLE_ATTRIBUTES : attributes
}


const shouldShowOverlay = Boolean(isExpandedHeader && get(config, 'config.header.background.imageOverlay') && get(config, 'config.header.background.image'));
return (
<header className='home-header col-md-12' style={merge({marginBottom: '0px', padding: 0}, getBackgroundStyles())}>
Expand Down Expand Up @@ -169,7 +168,7 @@ const HomeHeader = ({
)
}
{
showAttributes && !isExpandedHeader &&
showAttributes && isExpandedHeader &&
<React.Fragment>
{
map(
Expand All @@ -188,7 +187,7 @@ const HomeHeader = ({
</React.Fragment>
}
{
showSignatures && !isExpandedHeader &&
showSignatures && isExpandedHeader &&
<div className='col-md-12 no-side-padding flex-vertical-center' style={{paddingTop: '10px'}}>
{
org.location &&
Expand Down

0 comments on commit 78c05ce

Please sign in to comment.