feat(Map): Conditionally render blocks/challenges
This commit is contained in:
committed by
mrugesh mohapatra
parent
1e491d82d3
commit
4db584d6cc
@ -97,7 +97,7 @@ export class Block extends PureComponent {
|
||||
key={ title }
|
||||
onSelect={ this.handleSelect }
|
||||
>
|
||||
{ this.renderChallenges(challenges) }
|
||||
{ isOpen && this.renderChallenges(challenges) }
|
||||
</Panel>
|
||||
);
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ export class SuperBlock extends PureComponent {
|
||||
>
|
||||
{ this.renderMessage(message) }
|
||||
<div className={ `${ns}-accordion-block` }>
|
||||
{ this.renderBlocks(blocks) }
|
||||
{ isOpen && this.renderBlocks(blocks) }
|
||||
</div>
|
||||
</Panel>
|
||||
);
|
||||
|
Reference in New Issue
Block a user