+
)
}
@@ -230,16 +233,15 @@ const OperatorTags = ({ operation }: { operation: Operation }) => {
)
}
-const CardActions = ({ operation }: { operation: Operation }) => {
+const CardActions = ({
+ className,
+ operation,
+}: {
+ className?: string
+ operation: Operation
+}) => {
return (
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
-
{
- // 避免点击按钮时触发卡片的链接跳转
- e.stopPropagation()
- }}
- >
+
{
{
{
return (
-
-
+
{/* title */}
@@ -27,30 +30,15 @@ export const NeoOperationSetCard = ({
content={operationSet.name}
className="flex-1 whitespace-nowrap overflow-hidden text-ellipsis"
>
-
+
{operationSet.status === 'PRIVATE' && (
私有
)}
{operationSet.name}
- 复制神秘代码
- }
- >
-
-
+
-
-
+
+
+
+
)
}
@@ -91,11 +84,15 @@ export const OperationSetCard = ({
operationSet: OperationSetListItem
}) => {
return (
-
-
+
{/* title */}
@@ -103,65 +100,73 @@ export const OperationSetCard = ({
{operationSet.name}
-
- 复制神秘代码
-
- }
- >
-
-
+
{/* meta */}
-
-
-
-
-
{operationSet.copilotIds.length}份作业
+
+
+
+ {operationSet.copilotIds.length}份作业
-
-
-
-
-
-
-
-
- {operationSet.creator}
-
-
+
+
+
+
+
+ {operationSet.creator}
+
+
-
-
+
+
+
+
+ )
+}
+
+const CardActions = ({
+ className,
+ operationSet,
+}: {
+ className?: string
+ operationSet: OperationSetListItem
+}) => {
+ return (
+
+ 复制神秘代码
+ }
+ >
+
)
}
diff --git a/src/components/operation-set/AddToOperationSet.tsx b/src/components/operation-set/AddToOperationSet.tsx
index fe840c9..0eeb202 100644
--- a/src/components/operation-set/AddToOperationSet.tsx
+++ b/src/components/operation-set/AddToOperationSet.tsx
@@ -33,14 +33,7 @@ export function AddToOperationSetButton({
return (
<>
-