mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 09:28:04 +08:00
fix(CI): fix CI errors
This commit is contained in:
@ -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.')
|
||||
},
|
||||
}}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user