Skip to content
Snippets Groups Projects
Commit 99c29178 authored by adroitwhiz's avatar adroitwhiz
Browse files

Replace Stage <div> with React.Fragment

The Stage component will sometimes have a color picker background,
which darkens the entire screen when the color picker loupe is active.
This color picker background element should appear in the same level as
the stage's wrapper, not inside of it. Previously, this was done by
wrapping both the stage's wrapper and color picker background in a div.
Now, they're both wrapped in a React.Fragment to avoid a completely
unnecessary div wrapper.
parent 63d67c87
No related branches found
Tags 0.1.0-prerelease.20200512220043
No related merge requests found
......@@ -35,7 +35,7 @@ const StageComponent = props => {
const stageDimensions = getStageDimensions(stageSize, isFullScreen);
return (
<div>
<React.Fragment>
<Box
className={classNames(
styles.stageWrapper,
......@@ -129,7 +129,7 @@ const StageComponent = props => {
onClick={onDeactivateColorPicker}
/>
) : null}
</div>
</React.Fragment>
);
};
StageComponent.propTypes = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment