= withSuspensable(
return (
<>
+ {multiselect && (
+
+
+
+ 已选择 {selectedOperations.length} 份作业
+
+
+ {selectedOperations.map((operation) => (
+
+ ))}
+
+
+
+
+
+
+
+
op.id)}
+ >
+ 添加到作业集
+
+
+
+ )}
+
{items}
{isReachingEnd && operations.length === 0 && (
diff --git a/src/components/Operations.tsx b/src/components/Operations.tsx
index 61d515ce..05eb0a68 100644
--- a/src/components/Operations.tsx
+++ b/src/components/Operations.tsx
@@ -1,7 +1,6 @@
import {
Button,
ButtonGroup,
- Callout,
Card,
Divider,
H6,
@@ -22,12 +21,10 @@ import { OperationList } from 'components/OperationList'
import { OperationSetList } from 'components/OperationSetList'
import { neoLayoutAtom } from 'store/pref'
-import { Operation } from '../models/operation'
import { LevelSelect } from './LevelSelect'
import { OperatorFilter, useOperatorFilter } from './OperatorFilter'
import { withSuspensable } from './Suspensable'
import { UserFilter } from './UserFilter'
-import { AddToOperationSetButton } from './operation-set/AddToOperationSet'
export const Operations: ComponentType = withSuspensable(() => {
const [queryParams, setQueryParams] = useState<
@@ -46,7 +43,6 @@ export const Operations: ComponentType = withSuspensable(() => {
const [neoLayout, setNeoLayout] = useAtom(neoLayoutAtom)
const [tab, setTab] = useState<'operation' | 'operationSet'>('operation')
const [multiselect, setMultiselect] = useState(false)
- const [selectedOperations, setSelectedOperations] = useState
([])
return (
<>
@@ -191,43 +187,6 @@ export const Operations: ComponentType = withSuspensable(() => {