Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pasyukevich committed Oct 28, 2024
1 parent 359715a commit a32b797
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/Form/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
10 changes: 2 additions & 8 deletions src/components/UploadFile.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -67,7 +67,6 @@ function UploadFile({
const {translate} = useLocalize();
const styles = useThemeStyles();
const theme = useTheme();
const containerRef = useRef<HTMLDivElement | View>(null);

const handleFileUpload = (files: FileObject[]) => {
const totalSize = files.reduce((sum, file) => sum + (file.size ?? 0), 0);
Expand Down Expand Up @@ -101,13 +100,8 @@ function UploadFile({
onUpload(newFilesToUpload);
};

console.log(containerRef?.current?.offsetWidth);

return (
<View
style={[styles.alignItemsStart, style]}
ref={containerRef}
>
<View style={[styles.alignItemsStart, style]}>
<AttachmentPicker
acceptedFileTypes={acceptedFileTypes}
fileLimit={fileLimit}
Expand Down

0 comments on commit a32b797

Please sign in to comment.