Skip to content

Commit c40fe24

Browse files
committed
lint
1 parent 337d251 commit c40fe24

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

client/components/edit/ObjectSummary.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ const ObjectSummary = (): React.ReactElement => {
3939
</div>
4040
<h2>{title}</h2>
4141
<div>{HtmlReactParser(description)}</div>
42-
{loaded ? <div style={{ marginBlock: "1rem" }}><ObjectButtonBar pid={currentPid} /></div> : ""}
42+
{loaded ? (
43+
<div style={{ marginBlock: "1rem" }}>
44+
<ObjectButtonBar pid={currentPid} />
45+
</div>
46+
) : (
47+
""
48+
)}
4349
{loaded ? <ObjectOrder pid={currentPid} /> : ""}
4450
{loaded ? <ObjectChildCounts pid={currentPid} /> : ""}
4551
PID: {currentPid} <CopyPidButton pid={currentPid} />

client/components/edit/children/ChildList.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export const ChildList = ({
127127
const endNumber = startNumber + pageSize - 1;
128128
const paginatorLabel =
129129
children.numFound > 1 ? (
130-
<p class={styles.childlist__pagination}>
130+
<p className={styles.childlist__pagination}>
131131
Showing {startNumber} - {children.numFound < endNumber ? children.numFound : endNumber} of{" "}
132132
{children.numFound}
133133
</p>
@@ -141,7 +141,9 @@ export const ChildList = ({
141141
<Grid item xs="auto">
142142
{paginator}
143143
</Grid>
144-
<Grid item xs>&nbsp;</Grid>
144+
<Grid item xs>
145+
&nbsp;
146+
</Grid>
145147
<Grid item xs="auto" className={styles.childlist__toggles}>
146148
{thumbsButton}
147149
{modelsButton}

client/components/edit/datastream/DatastreamControlButton.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState } from "react";
1+
import React from "react";
22
import styles from "./Datastream.module.css";
33
import Button from "@mui/material/Button";
44
import DataObject from "@mui/icons-material/DataObject";
@@ -29,7 +29,6 @@ const DatastreamControlButton = ({
2929
datastream,
3030
disabled,
3131
}: DatastreamControlButtonProps): React.ReactElement => {
32-
const [isLoading, setLoading] = useState(false);
3332
const {
3433
action: { setActiveDatastream, setDatastreamModalState },
3534
} = useEditorContext();

0 commit comments

Comments
 (0)