Skip to content

Commit 0a56c58

Browse files
committed
formatting
Signed-off-by: Mohit Davar <[email protected]>
1 parent d5e0d5e commit 0a56c58

File tree

13 files changed

+215
-141
lines changed

13 files changed

+215
-141
lines changed

frontend/src/components/Charts/StatCard.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ const StatCard = ({ title, value, icon }) => (
55
<Paper
66
sx={{
77
p: 2,
8-
height: '100%',
8+
height: "100%",
99
}}
1010
>
1111
<Box
1212
sx={{
1313
display: "flex",
1414
flexDirection: "column",
1515
justifyContent: "space-between",
16-
flex: 1
16+
flex: 1,
1717
}}
1818
>
1919
<Typography variant="subtitle2" color="textSecondary">

frontend/src/components/Layout.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
Toolbar,
1313
Typography,
1414
Tooltip,
15-
useMediaQuery
15+
useMediaQuery,
1616
} from "@mui/material";
1717
import MenuIcon from "@mui/icons-material/Menu";
1818
import CloudIcon from "@mui/icons-material/Cloud";

frontend/src/components/jobs/JobPagination.jsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
import React from "react";
2-
import { Box, MenuItem, Pagination, Select, Typography, useTheme, useMediaQuery } from "@mui/material";
2+
import {
3+
Box,
4+
MenuItem,
5+
Pagination,
6+
Select,
7+
Typography,
8+
useTheme,
9+
useMediaQuery,
10+
} from "@mui/material";
311

412
const JobPagination = ({
513
pagination,

frontend/src/components/jobs/JobTable/JobTable.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ const JobTable = ({
114114
<TableContainer
115115
component={Paper}
116116
sx={{
117-
width: '100%',
118-
maxWidth: '100%',
117+
width: "100%",
118+
maxWidth: "100%",
119119
maxHeight: "calc(100vh - 200px)",
120120
overflow: "auto",
121121
borderRadius: "16px",
@@ -150,7 +150,7 @@ const JobTable = ({
150150
stickyHeader
151151
sx={{
152152
minWidth: 750,
153-
tableLayout: 'auto',
153+
tableLayout: "auto",
154154
}}
155155
>
156156
<JobTableHeader

frontend/src/components/jobs/Jobs.jsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const Jobs = () => {
160160
try {
161161
const errData = await response.json();
162162
errorMsg = errData.error || response.statusText;
163-
} catch { }
163+
} catch {}
164164
alert("Error creating job: " + errorMsg);
165165
return;
166166
}
@@ -211,15 +211,17 @@ const Jobs = () => {
211211
}, []);
212212

213213
return (
214-
<Box sx={{
215-
bgcolor: "background.default",
216-
minHeight: "100vh",
217-
px: { xs: 0, sm: 3},
218-
py: { xs: 0, sm: 3 },
219-
width: '100%',
220-
overflow: 'hidden',
221-
maxWidth: '100vw'
222-
}}>
214+
<Box
215+
sx={{
216+
bgcolor: "background.default",
217+
minHeight: "100vh",
218+
px: { xs: 0, sm: 3 },
219+
py: { xs: 0, sm: 3 },
220+
width: "100%",
221+
overflow: "hidden",
222+
maxWidth: "100vw",
223+
}}
224+
>
223225
{error && (
224226
<Box sx={{ mt: 2, color: theme.palette.error.main }}>
225227
<Typography variant="body1">{error}</Typography>

frontend/src/components/pods/Pods.jsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const Pods = () => {
111111
try {
112112
const errData = await response.json();
113113
errorMsg = errData.error || response.statusText;
114-
} catch { }
114+
} catch {}
115115
alert("Error creating pod: " + errorMsg);
116116
return;
117117
}
@@ -177,15 +177,17 @@ const Pods = () => {
177177
}, []);
178178

179179
return (
180-
<Box sx={{
181-
bgcolor: "background.default",
182-
minHeight: "100vh",
183-
px: { xs: 0, sm: 3 },
184-
py: { xs: 0, sm: 3 },
185-
width: '100%',
186-
overflow: 'hidden',
187-
maxWidth: '100vw'
188-
}}>
180+
<Box
181+
sx={{
182+
bgcolor: "background.default",
183+
minHeight: "100vh",
184+
px: { xs: 0, sm: 3 },
185+
py: { xs: 0, sm: 3 },
186+
width: "100%",
187+
overflow: "hidden",
188+
maxWidth: "100vw",
189+
}}
190+
>
189191
{error && (
190192
<Box sx={{ mt: 2, color: theme.palette.error.main }}>
191193
<Typography variant="body1">{error}</Typography>

frontend/src/components/pods/PodsPagination.jsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
import React from "react";
2-
import { Box, MenuItem, Pagination, Select, Typography, useTheme, useMediaQuery } from "@mui/material";
2+
import {
3+
Box,
4+
MenuItem,
5+
Pagination,
6+
Select,
7+
Typography,
8+
useTheme,
9+
useMediaQuery,
10+
} from "@mui/material";
311

412
const PodsPagination = ({ totalPods, pagination, onPaginationChange }) => {
513
const handleChangePage = (event, newPage) => {
@@ -48,9 +56,7 @@ const PodsPagination = ({ totalPods, pagination, onPaginationChange }) => {
4856
gap: isMobile ? 1 : 2,
4957
}}
5058
>
51-
<Typography variant="body2">
52-
Total Pods: {totalPods}
53-
</Typography>
59+
<Typography variant="body2">Total Pods: {totalPods}</Typography>
5460
<Pagination
5561
count={Math.ceil(totalPods / pagination.rowsPerPage)}
5662
page={pagination.page}

frontend/src/components/pods/PodsTable/PodsTable.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ const PodsTable = ({
8585
<TableContainer
8686
component={Paper}
8787
sx={{
88-
width: '100%',
89-
maxWidth: '100%',
88+
width: "100%",
89+
maxWidth: "100%",
9090
maxHeight: "calc(100vh - 200px)",
9191
overflow: "auto",
9292
borderRadius: "16px",
@@ -115,7 +115,7 @@ const PodsTable = ({
115115
stickyHeader
116116
sx={{
117117
minWidth: 750,
118-
tableLayout: 'auto',
118+
tableLayout: "auto",
119119
}}
120120
>
121121
<TableHeader

0 commit comments

Comments
 (0)