diff --git a/src/components/Form/types.ts b/src/components/Form/types.ts index 738e6bdca000..a77fabc52ce9 100644 --- a/src/components/Form/types.ts +++ b/src/components/Form/types.ts @@ -67,7 +67,7 @@ type ValidInputs = | typeof CountryPicker | typeof StatePicker | typeof ConstantSelector - | typeof UploadFile; + | typeof UploadFile | typeof PushRowWithModal; type ValueTypeKey = 'string' | 'boolean' | 'date' | 'country' | 'reportFields' | 'disabledListValues' | 'entityChart'; diff --git a/src/components/UploadFile.tsx b/src/components/UploadFile.tsx index 61c6ff90237c..5dff344a5877 100644 --- a/src/components/UploadFile.tsx +++ b/src/components/UploadFile.tsx @@ -1,4 +1,4 @@ -import React, {useRef} from 'react'; +import React from 'react'; import type {StyleProp, ViewStyle} from 'react-native'; import {View} from 'react-native'; import type {ValueOf} from 'type-fest'; @@ -67,7 +67,6 @@ function UploadFile({ const {translate} = useLocalize(); const styles = useThemeStyles(); const theme = useTheme(); - const containerRef = useRef(null); const handleFileUpload = (files: FileObject[]) => { const totalSize = files.reduce((sum, file) => sum + (file.size ?? 0), 0); @@ -101,13 +100,8 @@ function UploadFile({ onUpload(newFilesToUpload); }; - console.log(containerRef?.current?.offsetWidth); - return ( - +