diff --git a/src/components/practice/HintInfo.tsx b/src/components/practice/HintInfo.tsx index 5de23a4..4dedd1e 100644 --- a/src/components/practice/HintInfo.tsx +++ b/src/components/practice/HintInfo.tsx @@ -23,22 +23,17 @@ export function HintInfo({ currentCell }: HintInfoProps) {
+
{purpose}
) : ( diff --git a/src/components/practice/KnowledgeAreaCell.tsx b/src/components/practice/KnowledgeAreaCell.tsx deleted file mode 100644 index 0f129d6..0000000 --- a/src/components/practice/KnowledgeAreaCell.tsx +++ /dev/null @@ -1,87 +0,0 @@ -import { motion } from 'framer-motion' -import clsx from 'clsx' -import type { KnowledgeArea } from '@/types/itto' -import type { CellInfo } from '@/utils/practice' -import { useLongPress } from '@/hooks/useLongPress' - -interface KnowledgeAreaCellProps { - ka: KnowledgeArea - cellInfo?: CellInfo - isAnswered: boolean - isFocused: boolean - showAnswer?: string | null - onLongPress: (cellId: string) => void - onLongPressEnd: () => void - onClick: (cellId: string) => void - tabIndex: number -} - -export function KnowledgeAreaCell({ - ka, - cellInfo, - isAnswered, - isFocused, - showAnswer, - onLongPress, - onLongPressEnd, - onClick, - tabIndex, -}: KnowledgeAreaCellProps) { - const cellId = `ka-${ka.id}` - - const longPressHandlers = useLongPress(cellId, { - onLongPress, - onLongPressEnd, - }) - - return ( -| + 知识领域 / 过程组 + | + {sortedPGs.map((pg) => ( ++ {pg.name} + | + ))} +
|---|---|
|
+
+
+ {ka.order}
+
+
+ {ka.name}
+
+
+ |
- return (
-
+
+ {processes.map((p) => {
+ const processCellId = `process-${p.id}`
- if (processes.length === 0) {
- // 空单元格:置灰,不可聚焦
- return (
-
- )
- }
-
- return (
-
- )
- })}
+ return (
+
- {processes.map((p) => {
- const processCellId = `process-${p.id}`
-
- return (
-
- )
- })}
- |
+ )
+ })}
+