refactor(frontend): resolve TS errors

This commit is contained in:
yassinedorbozgithub 2025-02-09 01:48:14 +01:00
parent 90a7c55646
commit 9190ec9864
3 changed files with 7 additions and 2 deletions

View File

@ -20,7 +20,7 @@ export const AttachmentViewerForm: FC<
ComponentFormProps<AttachmentViewerFormData>
> = ({ data, Wrapper = Fragment, WrapperProps }) => {
return (
<Wrapper {...WrapperProps}>
<Wrapper open={!!WrapperProps?.open} {...WrapperProps}>
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
width="auto"

View File

@ -109,7 +109,11 @@ export const BlockEditForm: FC<ComponentFormProps<IBlock>> = ({
}, [block, reset]);
return (
<Wrapper onSubmit={handleSubmit(onSubmitForm)} {...WrapperProps}>
<Wrapper
open={!!WrapperProps?.open}
onSubmit={handleSubmit(onSubmitForm)}
{...WrapperProps}
>
<BlockFormProvider methods={methods} block={block || undefined}>
<ContentContainer>
<ContentItem display="flex" gap={5}>

View File

@ -39,6 +39,7 @@ export const BlockMoveForm: FC<ComponentFormProps<BlockMoveFormData>> = ({
return (
<Wrapper
open={!!WrapperProps?.open}
onSubmit={handleMove}
{...WrapperProps}
confirmButtonProps={{