Skip to content

Commit 2eda983

Browse files
committed
fixed visibility button format with prettier
1 parent c83a824 commit 2eda983

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
PUBLIC_URL=.
1+
PUBLIC_URL=.
2+
PORT=3002

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@
3939
"web-vitals": "^2.1.2"
4040
},
4141
"scripts": {
42-
"start": "PORT=3002 react-scripts start",
42+
"start": "react-scripts start",
4343
"build": "react-scripts build",
4444
"test": "react-scripts test",
4545
"eject": "react-scripts eject",
46-
"format": "prettier --write --config ./prettierrc.json 'src/**/*.{ts,tsx}'",
47-
"format-check": "prettier --check --config ./prettierrc.json 'src/**/*.{ts,tsx}'"
46+
"format": "prettier --write --config ./prettierrc.json src/**/*.{ts,tsx}",
47+
"format-check": "prettier --check --config ./prettierrc.json src/**/*.{ts,tsx}"
4848
},
4949
"eslintConfig": {
5050
"extends": [

src/vis/Vis.tsx

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -319,31 +319,31 @@ export default function Vis() {
319319
</Card>
320320
</Fade>
321321
</Box>
322-
322+
323323
<Box
324-
// new box
325-
component='main'
326-
sx={{
327-
backgroundColor: 'transparent',
328-
overflow: 'none',
329-
position: 'absolute',
330-
right: '8px',
331-
bottom:
332-
20 +
333-
(displayValue(displayOptions, 'displayGraph')
334-
? chartHeight + 10
335-
: 0),
336-
zIndex: '4',
337-
}}>
324+
// new box
325+
component='main'
326+
sx={{
327+
backgroundColor: 'transparent',
328+
overflow: 'none',
329+
position: 'absolute',
330+
right: '8px',
331+
bottom:
332+
20 +
333+
(displayValue(displayOptions, 'displayGraph')
334+
? chartHeight + 10
335+
: 0),
336+
zIndex: '4',
337+
}}
338+
>
338339
<IconButton
339340
onClick={() => {
340341
setDisplayOptions(
341342
solveDisplayOptions(displayOptions, 'displayGraph', true),
342343
);
343344
}}
344345
>
345-
<Visibility>
346-
</Visibility>
346+
<Visibility></Visibility>
347347
</IconButton>
348348
</Box>
349349
<Box
@@ -357,7 +357,7 @@ export default function Vis() {
357357
20 +
358358
(displayValue(displayOptions, 'displayGraph')
359359
? chartHeight + 10
360-
: + 50),
360+
: +50),
361361
zIndex: '5',
362362
}}
363363
>
@@ -377,7 +377,6 @@ export default function Vis() {
377377
</Typography>
378378
</Card>
379379
</Fade>
380-
381380
</Box>
382381
</ThemeProvider>
383382
);

0 commit comments

Comments
 (0)