Remove double greyed-out-overlay

Summary:
When a toggled section is frozen, it already has a greyed out overlay over the whole thing.
So there's no need for another one covering the indented section.

Reviewed By: passy

Differential Revision: D18063767

fbshipit-source-id: a4d5992ecf61f036a23f619e9cf64d59150a41d6
This commit is contained in:
John Knox
2019-10-23 03:50:31 -07:00
committed by Facebook Github Bot
parent f53b252aff
commit beb797e70d

View File

@@ -43,7 +43,7 @@ export default function ToggledSection(props: {
</FlexRow>
<IndentedSection>
{props.children}
{props.toggled ? null : <GreyedOutOverlay />}
{props.toggled || props.frozen ? null : <GreyedOutOverlay />}
</IndentedSection>
</FlexColumn>
);