From 59873689ac921a05e4df65d88bd4f2fcec8c4094 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Thu, 10 Aug 2023 14:59:35 +0200 Subject: [PATCH] Fix the type error --- .../studio/src/propEditors/simpleEditors/FilePropEditor.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/theatre/studio/src/propEditors/simpleEditors/FilePropEditor.tsx b/theatre/studio/src/propEditors/simpleEditors/FilePropEditor.tsx index fc45490..b054eb0 100644 --- a/theatre/studio/src/propEditors/simpleEditors/FilePropEditor.tsx +++ b/theatre/studio/src/propEditors/simpleEditors/FilePropEditor.tsx @@ -3,6 +3,7 @@ import {Package, Trash} from '@theatre/studio/uiComponents/icons' import React, {useCallback, useEffect} from 'react' import styled, {css} from 'styled-components' import type {ISimplePropEditorReactProps} from './ISimplePropEditorReactProps' +import type {$FixMe} from '@theatre/shared/utils/types' const Container = styled.div<{empty: boolean}>` display: flex; @@ -105,7 +106,7 @@ function FilePropEditor({ }, [value]) const onChange = useCallback( - async (event) => { + async (event: React.ChangeEvent<$FixMe>) => { const file = event.target.files[0] editingTools.permanentlySetValue({type: 'file', id: undefined}) const fileId = await editingTools.createAsset(file)