Skip to content

Commit

Permalink
fixed visibility button format with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mmt456 committed Aug 9, 2024
1 parent c83a824 commit 2eda983
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
PUBLIC_URL=.
PUBLIC_URL=.
PORT=3002
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
"web-vitals": "^2.1.2"
},
"scripts": {
"start": "PORT=3002 react-scripts start",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"format": "prettier --write --config ./prettierrc.json 'src/**/*.{ts,tsx}'",
"format-check": "prettier --check --config ./prettierrc.json 'src/**/*.{ts,tsx}'"
"format": "prettier --write --config ./prettierrc.json src/**/*.{ts,tsx}",
"format-check": "prettier --check --config ./prettierrc.json src/**/*.{ts,tsx}"
},
"eslintConfig": {
"extends": [
Expand Down
37 changes: 18 additions & 19 deletions src/vis/Vis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,31 +319,31 @@ export default function Vis() {
</Card>
</Fade>
</Box>

<Box
// new box
component='main'
sx={{
backgroundColor: 'transparent',
overflow: 'none',
position: 'absolute',
right: '8px',
bottom:
20 +
(displayValue(displayOptions, 'displayGraph')
? chartHeight + 10
: 0),
zIndex: '4',
}}>
// new box
component='main'
sx={{
backgroundColor: 'transparent',
overflow: 'none',
position: 'absolute',
right: '8px',
bottom:
20 +
(displayValue(displayOptions, 'displayGraph')
? chartHeight + 10
: 0),
zIndex: '4',
}}
>
<IconButton
onClick={() => {
setDisplayOptions(
solveDisplayOptions(displayOptions, 'displayGraph', true),
);
}}
>
<Visibility>
</Visibility>
<Visibility></Visibility>
</IconButton>
</Box>
<Box
Expand All @@ -357,7 +357,7 @@ export default function Vis() {
20 +
(displayValue(displayOptions, 'displayGraph')
? chartHeight + 10
: + 50),
: +50),
zIndex: '5',
}}
>
Expand All @@ -377,7 +377,6 @@ export default function Vis() {
</Typography>
</Card>
</Fade>

</Box>
</ThemeProvider>
);
Expand Down

0 comments on commit 2eda983

Please sign in to comment.