Skip to content

Commit 99c2917

Browse files
committed
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.
1 parent 63d67c8 commit 99c2917

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/stage/stage.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const StageComponent = props => {
3535
const stageDimensions = getStageDimensions(stageSize, isFullScreen);
3636

3737
return (
38-
<div>
38+
<React.Fragment>
3939
<Box
4040
className={classNames(
4141
styles.stageWrapper,
@@ -129,7 +129,7 @@ const StageComponent = props => {
129129
onClick={onDeactivateColorPicker}
130130
/>
131131
) : null}
132-
</div>
132+
</React.Fragment>
133133
);
134134
};
135135
StageComponent.propTypes = {

0 commit comments

Comments
 (0)