Skip to content

Commit edfb8e6

Browse files
committed
Remove semicolons
1 parent 0f09ea9 commit edfb8e6

File tree

8 files changed

+64
-64
lines changed

8 files changed

+64
-64
lines changed

src/features/diff/data/IOasDiffCalculator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DiffChange } from "../domain/DiffChange";
1+
import { DiffChange } from "../domain/DiffChange"
22

33
export interface DiffResult {
44
from: string
@@ -14,5 +14,5 @@ export interface IOasDiffCalculator {
1414
path: string,
1515
baseRefOid: string,
1616
toRef: string
17-
): Promise<DiffResult>;
17+
): Promise<DiffResult>
1818
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { z } from "zod";
1+
import { z } from "zod"
22

33
export const DiffChangeSchema = z.object({
44
id: z.string(),
@@ -9,6 +9,6 @@ export const DiffChangeSchema = z.object({
99
path: z.string().optional(),
1010
source: z.string().optional(),
1111
section: z.string().optional(),
12-
});
12+
})
1313

14-
export type DiffChange = z.infer<typeof DiffChangeSchema>;
14+
export type DiffChange = z.infer<typeof DiffChangeSchema>

src/features/sidebar/view/internal/diffbar/DiffContent.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
"use client";
1+
"use client"
22

3-
import { Alert, Box, Typography } from "@mui/material";
4-
import { useState } from "react";
5-
import useDiff from "@/features/sidebar/data/useDiff";
6-
import DiffList, { DiffListStatus } from "./components/DiffList";
7-
import DiffDialog from "./components/DiffDialog";
3+
import { Alert, Box, Typography } from "@mui/material"
4+
import { useState } from "react"
5+
import useDiff from "@/features/sidebar/data/useDiff"
6+
import DiffList, { DiffListStatus } from "./components/DiffList"
7+
import DiffDialog from "./components/DiffDialog"
88

99
const DiffContent = () => {
10-
const { data, loading, changes, error } = useDiff();
11-
const [selectedChange, setSelectedChange] = useState<number | null>(null);
10+
const { data, loading, changes, error } = useDiff()
11+
const [selectedChange, setSelectedChange] = useState<number | null>(null)
1212

13-
const closeModal = () => setSelectedChange(null);
13+
const closeModal = () => setSelectedChange(null)
1414

1515
const hasData = Boolean(data)
1616
const hasChanges = changes.length > 0
@@ -79,7 +79,7 @@ const DiffContent = () => {
7979
onClose={closeModal}
8080
/>
8181
</Box>
82-
);
83-
};
82+
)
83+
}
8484

85-
export default DiffContent;
85+
export default DiffContent

src/features/sidebar/view/internal/diffbar/components/DiffDialog.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
"use client";
1+
"use client"
22

3-
import React from "react";
3+
import React from "react"
44
import {
55
Dialog,
66
DialogTitle,
@@ -9,23 +9,23 @@ import {
99
Button,
1010
Box,
1111
Typography,
12-
} from "@mui/material";
13-
import { softPaperSx } from "@/common/theme/theme";
14-
import MonoQuotedText from "./MonoQuotedText";
12+
} from "@mui/material"
13+
import { softPaperSx } from "@/common/theme/theme"
14+
import MonoQuotedText from "./MonoQuotedText"
1515

1616
interface ChangeDetails {
17-
path?: string;
18-
text?: string | React.ReactNode;
17+
path?: string
18+
text?: string | React.ReactNode
1919
}
2020

2121
const DiffDialog = ({
2222
open,
2323
change,
2424
onClose,
2525
}: {
26-
open: boolean;
27-
change: ChangeDetails | null;
28-
onClose: () => void;
26+
open: boolean
27+
change: ChangeDetails | null
28+
onClose: () => void
2929
}) => {
3030
return (
3131
<Dialog
@@ -79,7 +79,7 @@ const DiffDialog = ({
7979
<Button onClick={onClose}>Close</Button>
8080
</DialogActions>
8181
</Dialog>
82-
);
83-
};
82+
)
83+
}
8484

85-
export default DiffDialog;
85+
export default DiffDialog

src/features/sidebar/view/internal/diffbar/components/DiffList.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
"use client";
1+
"use client"
22

3-
import { Box, Typography } from "@mui/material";
4-
import PopulatedDiffList from "./PopulatedDiffList";
3+
import { Box, Typography } from "@mui/material"
4+
import PopulatedDiffList from "./PopulatedDiffList"
55

66
interface Change {
7-
path?: string;
8-
text?: string;
7+
path?: string
8+
text?: string
99
}
1010

1111
export type DiffListStatus = "idle" | "loading" | "empty" | "ready" | "error"
@@ -28,26 +28,26 @@ const DiffList = ({
2828
Loading changes...
2929
</Typography>
3030
</Box>
31-
);
31+
)
3232
} else if (status === "empty") {
3333
return (
3434
<Box sx={{ textAlign: "left", py: 1, px: 1 }}>
3535
<Typography variant="body0" color="text.secondary">
3636
No changes
3737
</Typography>
3838
</Box>
39-
);
39+
)
4040
} else if (status === "ready") {
4141
return (
4242
<PopulatedDiffList
4343
changes={changes}
4444
selectedChange={selectedChange}
4545
onClick={onClick}
4646
/>
47-
);
47+
)
4848
}
4949

5050
return null
5151
}
5252

53-
export default DiffList;
53+
export default DiffList

src/features/sidebar/view/internal/diffbar/components/DiffListItem.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
"use client";
1+
"use client"
22

3-
import { Box, Typography, ListItem, ListItemButton, Stack } from "@mui/material";
4-
import MenuItemHover from "@/common/ui/MenuItemHover";
5-
import MonoQuotedText from "./MonoQuotedText";
3+
import { Box, Typography, ListItem, ListItemButton, Stack } from "@mui/material"
4+
import MenuItemHover from "@/common/ui/MenuItemHover"
5+
import MonoQuotedText from "./MonoQuotedText"
66

77
const DiffListItem = ({
88
path,
99
text,
1010
selected,
1111
onClick,
1212
}: {
13-
path?: string;
14-
text?: string;
15-
selected: boolean;
16-
onClick: () => void;
13+
path?: string
14+
text?: string
15+
selected: boolean
16+
onClick: () => void
1717
}) => {
1818
return (
1919
<ListItem disableGutters disablePadding>
@@ -60,7 +60,7 @@ const DiffListItem = ({
6060
</MenuItemHover>
6161
</ListItemButton>
6262
</ListItem>
63-
);
64-
};
63+
)
64+
}
6565

66-
export default DiffListItem;
66+
export default DiffListItem

src/features/sidebar/view/internal/diffbar/components/MonoQuotedText.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
"use client";
1+
"use client"
22

3-
import { Box } from "@mui/material";
3+
import { Box } from "@mui/material"
44

55
const MonoQuotedText = ({ text }: { text: string }) => {
66
return (
@@ -23,7 +23,7 @@ const MonoQuotedText = ({ text }: { text: string }) => {
2323
)
2424
)}
2525
</>
26-
);
27-
};
26+
)
27+
}
2828

29-
export default MonoQuotedText;
29+
export default MonoQuotedText

src/features/sidebar/view/internal/diffbar/components/PopulatedDiffList.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
"use client";
1+
"use client"
22

3-
import SpacedList from "@/common/ui/SpacedList";
4-
import DiffListItem from "./DiffListItem";
3+
import SpacedList from "@/common/ui/SpacedList"
4+
import DiffListItem from "./DiffListItem"
55

66
interface Change {
77
path?: string;
@@ -13,9 +13,9 @@ const PopulatedDiffList = ({
1313
selectedChange,
1414
onClick,
1515
}: {
16-
changes: Change[];
17-
selectedChange: number | null;
18-
onClick: (i: number) => void;
16+
changes: Change[]
17+
selectedChange: number | null
18+
onClick: (i: number) => void
1919
}) => {
2020
return (
2121
<SpacedList
@@ -35,7 +35,7 @@ const PopulatedDiffList = ({
3535
/>
3636
))}
3737
</SpacedList>
38-
);
39-
};
38+
)
39+
}
4040

41-
export default PopulatedDiffList;
41+
export default PopulatedDiffList

0 commit comments

Comments
 (0)