fix: refine answer display in purpose practice
This commit is contained in:
@@ -10,6 +10,7 @@ interface ProficientInputAreaProps {
|
||||
onChange: (value: string) => void
|
||||
onCompositionStart: () => void
|
||||
onCompositionEnd: (value: string) => void
|
||||
showLockedHint?: boolean
|
||||
}
|
||||
|
||||
export function ProficientInputArea({
|
||||
@@ -20,6 +21,7 @@ export function ProficientInputArea({
|
||||
onChange,
|
||||
onCompositionStart,
|
||||
onCompositionEnd,
|
||||
showLockedHint = true,
|
||||
}: ProficientInputAreaProps) {
|
||||
const inputRef = useRef<HTMLInputElement | null>(null)
|
||||
|
||||
@@ -55,7 +57,7 @@ export function ProficientInputArea({
|
||||
/>
|
||||
|
||||
<AnimatePresence>
|
||||
{inputLocked && (
|
||||
{showLockedHint && inputLocked && (
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: -6 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
|
||||
Reference in New Issue
Block a user