Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit a908696

Browse files
committed
Fixed prettier issue
1 parent 5aa622e commit a908696

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/PageExtractionModal/ListItem.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class ListItem extends React.Component<ListItemInputProps, ListItemState> {
4747
};
4848
}
4949
componentDidMount(): void {
50+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
5051
// @ts-ignore
5152
this._resizeObserver.observe(this._measurementRef.current);
5253
}
@@ -56,7 +57,7 @@ class ListItem extends React.Component<ListItemInputProps, ListItemState> {
5657
}
5758
this.props.parentRemoveEventListener("scroll", this.onParentScroll);
5859
}
59-
onParentScroll = (parentRect: any, _scrollTop: number, padding: number) => {
60+
onParentScroll = (parentRect: any, _scrollTop: number, padding: number): void => {
6061
clearTimeout(this._scrollHandle);
6162
this._scrollHandle = setTimeout(() => {
6263
const rect = this._containerRef.current?.getBoundingClientRect();
@@ -78,6 +79,7 @@ class ListItem extends React.Component<ListItemInputProps, ListItemState> {
7879

7980
return verticalIntersection;
8081
};
82+
// eslint-disable-next-line no-undef
8183
render(): JSX.Element {
8284
if (!this.state.shouldRenderItem) {
8385
return <></>;
@@ -89,7 +91,7 @@ class ListItem extends React.Component<ListItemInputProps, ListItemState> {
8991
display: "flex",
9092
alignItems: "center",
9193
justifyContent: "center",
92-
padding: "0.5em 0px",
94+
padding: "0.5em 0px"
9395
// DEBUGGING ONLY
9496
// backgroundColor: this.state.isVisible ? "green" : "red"
9597
}}

0 commit comments

Comments
 (0)