Skip to content

Commit e200f57

Browse files
committed
test
1 parent 947f53e commit e200f57

File tree

2 files changed

+51
-46
lines changed

2 files changed

+51
-46
lines changed

app/src/components/top/NavBarButtons.tsx

Lines changed: 50 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -29,31 +29,33 @@ import {
2929
updateProjectId,
3030
updateProjectName,
3131
updateProjectPublished,
32-
toggleScreenshotTrigger,
32+
toggleScreenshotTrigger
3333
} from '../../redux/reducers/slice/appStateSlice';
34-
34+
console.log('test');
3535
const { API_BASE_URL } = serverConfig;
3636

37-
const useStyles = makeStyles((theme) => createStyles({
38-
root: {
39-
flexGrow: 1,
40-
width: '100%',
41-
},
42-
menuButton: {
43-
marginRight: theme.spacing(1),
44-
color: 'white',
45-
},
46-
title: {
47-
flexGrow: 1,
48-
color: 'white',
49-
},
50-
manageProject: {
51-
display: 'flex',
52-
justifyContent: 'center',
53-
width: '100px',
54-
overflow: 'none',
55-
},
56-
}));
37+
const useStyles = makeStyles((theme) =>
38+
createStyles({
39+
root: {
40+
flexGrow: 1,
41+
width: '100%'
42+
},
43+
menuButton: {
44+
marginRight: theme.spacing(1),
45+
color: 'white'
46+
},
47+
title: {
48+
flexGrow: 1,
49+
color: 'white'
50+
},
51+
manageProject: {
52+
display: 'flex',
53+
justifyContent: 'center',
54+
width: '100px',
55+
overflow: 'none'
56+
}
57+
})
58+
);
5759

5860
interface StyledMenuProps extends React.PropsWithChildren<{}> {
5961
id: string;
@@ -65,18 +67,18 @@ interface StyledMenuProps extends React.PropsWithChildren<{}> {
6567

6668
const StyledMenu = withStyles({
6769
paper: {
68-
border: '1px solid #d3d4d5',
69-
},
70+
border: '1px solid #d3d4d5'
71+
}
7072
})((props: StyledMenuProps) => (
7173
<Menu
7274
elevation={0}
7375
anchorOrigin={{
7476
vertical: 'bottom',
75-
horizontal: 'center',
77+
horizontal: 'center'
7678
}}
7779
transformOrigin={{
7880
vertical: 'top',
79-
horizontal: 'center',
81+
horizontal: 'center'
8082
}}
8183
open={true}
8284
{...props}
@@ -87,10 +89,10 @@ const StyledMenuItem = withStyles((theme) => ({
8789
root: {
8890
'&:focus': {
8991
'& .MuiListItemIcon-root, & .MuiListItemText-primary': {
90-
color: theme.palette.common.white,
91-
},
92-
},
93-
},
92+
color: theme.palette.common.white
93+
}
94+
}
95+
}
9496
}))(MenuItem);
9597

9698
/**
@@ -177,7 +179,7 @@ const navbarDropDown = (props): JSX.Element => {
177179
// handlePublish logic
178180
const handlePublish = () => {
179181
if (!state.name) {
180-
console.log({state});
182+
console.log({ state });
181183
console.error('Project name cannot be empty');
182184
return;
183185
}
@@ -247,20 +249,23 @@ const navbarDropDown = (props): JSX.Element => {
247249
<span>Tutorial</span>
248250
</button>
249251
</Link>
250-
<button onClick={handlePublish} style={{ backgroundColor: '#0671E3', color: 'white' }}>
251-
<svg
252-
xmlns="http://www.w3.org/2000/svg"
253-
width="16"
254-
height="16"
255-
fill="currentColor"
256-
className="bi bi-upload"
257-
viewBox="0 0 16 16"
258-
>
259-
<path d="M.5 9.5a.5.5 0 0 0 .5.5h3v5a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-5h3a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 0-.5-.5H10V1.5a.5.5 0 0 0-1 0v3H7V1.5a.5.5 0 0 0-1 0v3H.5a.5.5 0 0 0-.5.5v4z" />
260-
<path d="M7 6v6h2V6H7z" />
261-
</svg>
262-
<span>Publish</span>
263-
</button>
252+
<button
253+
onClick={handlePublish}
254+
style={{ backgroundColor: '#0671E3', color: 'white' }}
255+
>
256+
<svg
257+
xmlns="http://www.w3.org/2000/svg"
258+
width="16"
259+
height="16"
260+
fill="currentColor"
261+
className="bi bi-upload"
262+
viewBox="0 0 16 16"
263+
>
264+
<path d="M.5 9.5a.5.5 0 0 0 .5.5h3v5a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-5h3a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 0-.5-.5H10V1.5a.5.5 0 0 0-1 0v3H7V1.5a.5.5 0 0 0-1 0v3H.5a.5.5 0 0 0-.5.5v4z" />
265+
<path d="M7 6v6h2V6H7z" />
266+
</svg>
267+
<span>Publish</span>
268+
</button>
264269
{/* <button onClick={() => clearWorkspace()}>
265270
<svg
266271
xmlns="http://www.w3.org/2000/svg"

app/src/containers/MainContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const MainContainer = (props): JSX.Element => {
9696
//Logic to close the bottompanel when clicking outside of it
9797
const useOutsideClick = () => {
9898
const bottomPanelRef = useRef(null);
99-
99+
100100
useEffect(() => {
101101
const handleClick = (event) => {
102102
if (

0 commit comments

Comments
 (0)