Skip to content

Commit db4d709

Browse files
ankith26github-actions[bot]
authored andcommitted
Apply Prettier Formatting Fixes
1 parent 3787516 commit db4d709

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

frontend/src/components/ReviewBox.jsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,10 @@ const ReviewBox = ({ children, title, endpoint, initExpanded }) => {
142142
if (isExpanded) {
143143
if (cache.current[endpoint]) {
144144
setReviewsList(cache.current[endpoint]);
145-
}
146-
else {
145+
} else {
147146
fetchReviews();
148147
}
149-
}
150-
else {
148+
} else {
151149
setReviewsList(null);
152150
}
153151
}, [endpoint, isExpanded]);
@@ -174,7 +172,12 @@ const ReviewBox = ({ children, title, endpoint, initExpanded }) => {
174172
{isExpanded && (
175173
<>
176174
{children}
177-
<Typography variant="h6" gutterBottom color="secondary" sx={{ mt: 1 }}>
175+
<Typography
176+
variant="h6"
177+
gutterBottom
178+
color="secondary"
179+
sx={{ mt: 1 }}
180+
>
178181
Reviews
179182
</Typography>
180183
{reviewsList === null ? (

0 commit comments

Comments
 (0)