mirror of
https://github.com/hexastack/hexabot
synced 2025-02-22 12:28:26 +00:00
refactor(frontend): resolve TS errors
This commit is contained in:
parent
90a7c55646
commit
9190ec9864
@ -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"
|
||||
|
@ -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}>
|
||||
|
@ -39,6 +39,7 @@ export const BlockMoveForm: FC<ComponentFormProps<BlockMoveFormData>> = ({
|
||||
|
||||
return (
|
||||
<Wrapper
|
||||
open={!!WrapperProps?.open}
|
||||
onSubmit={handleMove}
|
||||
{...WrapperProps}
|
||||
confirmButtonProps={{
|
||||
|
Loading…
Reference in New Issue
Block a user