fix(dashboard): resolve TS build errors in a11y changes

- Fix duplicate className attr in EmojiDialogs.tsx
- Replace animated.div with animated('div') in expression-reviewer and zoomable-chart to fix React 19 children type error
- Fix malformed i18n JSON (a11y namespace was outside root object)
This commit is contained in:
DrSmoothl
2026-03-05 22:10:32 +08:00
parent e3cfca17a6
commit 8f41e25696
7 changed files with 12 additions and 10 deletions

View File

@@ -18,6 +18,8 @@
import { useRef } from 'react'
import { animated, useSpring } from '@react-spring/web'
const AnimatedDiv = animated('div')
import { usePinch } from '@use-gesture/react'
import { cn } from '@/lib/utils'
@@ -82,9 +84,9 @@ export function ZoomableChart({
className={cn('overflow-hidden touch-none select-none', className)}
style={{ touchAction: 'none' }}
>
<animated.div style={style} className="w-full h-full origin-center">
<AnimatedDiv style={style} className="w-full h-full origin-center">
{children}
</animated.div>
</AnimatedDiv>
</div>
)
}