Skip to content

Commit ec2eb8e

Browse files
committed
lint fix
1 parent ddee4c2 commit ec2eb8e

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/components/CodeEditor/CodeEditor.jsx

+10-11
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ const CodeEditorIcon = styled.button`
8181

8282
const CodeEditorWindow = styled.div`
8383
box-shadow: 0px 0px 55px rgba(0, 0, 0, 0.25);
84-
z-index: ${props => props.zIndex};
85-
transform: ${props => `translate(${props.x}px, ${props.y}px)`};
86-
width: ${props => props.width}px;
87-
height: ${props => props.height}px;
84+
z-index: ${(props) => props.zIndex};
85+
transform: ${(props) => `translate(${props.x}px, ${props.y}px)`};
86+
width: ${(props) => props.width}px;
87+
height: ${(props) => props.height}px;
8888
top: 0;
89-
left: 0;
89+
left: 0;
9090
position: fixed;
9191
`;
9292

@@ -258,7 +258,6 @@ export const CodeEditor = ({
258258
);
259259
}
260260

261-
262261
return ReactDOM.createPortal(
263262
<ThemeProvider
264263
theme={
@@ -268,11 +267,11 @@ export const CodeEditor = ({
268267
}
269268
>
270269
<CodeEditorWindow
271-
zIndex={zIndex}
272-
x={editorPosition.x}
273-
y={editorPosition.y}
274-
height={editorSize.height}
275-
width={editorSize.width}
270+
zIndex={zIndex}
271+
x={editorPosition.x}
272+
y={editorPosition.y}
273+
height={editorSize.height}
274+
width={editorSize.width}
276275
ref={editorWindowRef}
277276
>
278277
<CodeEditorTopPanel

0 commit comments

Comments
 (0)