fix(CI): fix CI errors

This commit is contained in:
zhsama
2025-10-30 16:54:17 +08:00
parent b25d379ef4
commit db744444f2
9 changed files with 11 additions and 14 deletions

View File

@ -102,14 +102,14 @@ const FormPlayground = () => {
options={{
...demoFormOpts,
validators: {
onSubmit: ({ value }) => {
const result = UserSchema.safeParse(value as typeof demoFormOpts.defaultValues)
onSubmit: ({ value: formValue }) => {
const result = UserSchema.safeParse(formValue as typeof demoFormOpts.defaultValues)
if (!result.success)
return result.error.issues[0].message
return undefined
},
},
onSubmit: ({ value }) => {
onSubmit: () => {
setStatus('Successfully saved profile.')
},
}}

View File

@ -67,7 +67,7 @@ const InputWithCopy = React.forwardRef<HTMLInputElement, InputWithCopyProps>((
inputProps.className,
)}
value={value}
{...(({ size, ...rest }) => rest)(inputProps)}
{...(({ size: _size, ...rest }) => rest)(inputProps)}
/>
{showCopyButton && (
<div

View File

@ -29,7 +29,7 @@ const VoiceInputMock = ({ onConverted, onCancel }: any) => {
<div className="absolute inset-[1.5px] flex items-center overflow-hidden rounded-[10.5px] bg-primary-25 py-[14px] pl-[14.5px] pr-[6.5px]">
{/* Waveform visualization placeholder */}
<div className="absolute bottom-0 left-0 flex h-4 w-full items-end gap-[3px] px-2">
{new Array(40).fill(0).map((_, i) => (
{Array.from({ length: 40 }).map((_, i) => (
<div
key={i}
className="w-[2px] rounded-t bg-blue-200"