Skip to content

Commit

Permalink
removes janky attempt at fixing CI 'size' check's type error
Browse files Browse the repository at this point in the history
  • Loading branch information
mperrotti committed Jun 28, 2023
1 parent 0e8b90e commit 2c00251
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/drafts/MarkdownEditor/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ FooterButton.displayName = 'MarkdownEditor.FooterButton'

const DefaultFooterButtons = memo(() => {
const {uploadButtonProps, fileDraggedOver} = useContext(MarkdownEditorContext)
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const {variant, ...uploadButtonPropsRest} = uploadButtonProps || {}

return (
<>
Expand All @@ -60,7 +58,7 @@ const DefaultFooterButtons = memo(() => {
{uploadButtonProps && (
<>
<VisualSeparator />
<FileUploadButton fileDraggedOver={fileDraggedOver} {...uploadButtonPropsRest} />
<FileUploadButton fileDraggedOver={fileDraggedOver} {...uploadButtonProps} />
</>
)}
</>
Expand Down

0 comments on commit 2c00251

Please sign in to comment.