From 1f9b9a3df0592d4fdc016a31029660669d692b3b Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Thu, 14 Jul 2022 12:10:45 +0700 Subject: [PATCH] renamed some snake_case params --- src/components/sortable/SortableAudioGrid/index.tsx | 2 +- src/components/sortable/SortableImageGrid/index.tsx | 2 +- src/components/upload/AudioUpload/index.tsx | 8 ++++---- src/components/upload/ImageUpload/index.tsx | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/sortable/SortableAudioGrid/index.tsx b/src/components/sortable/SortableAudioGrid/index.tsx index a6d7e77f..8dcfafd0 100644 --- a/src/components/sortable/SortableAudioGrid/index.tsx +++ b/src/components/sortable/SortableAudioGrid/index.tsx @@ -34,7 +34,7 @@ const renderItem = ({ const renderLocked = ({ locked }: { locked: UploadStatus }) => ( void; }) => ( - + ); const SortableImageGrid: FC = ({ diff --git a/src/components/upload/AudioUpload/index.tsx b/src/components/upload/AudioUpload/index.tsx index 155a9932..2e55e1c6 100644 --- a/src/components/upload/AudioUpload/index.tsx +++ b/src/components/upload/AudioUpload/index.tsx @@ -13,10 +13,10 @@ interface IProps { progress?: number; onDrop?: (file_id: string) => void; - is_uploading?: boolean; + uploading?: boolean; } -const AudioUpload: FC = ({ title, progress, is_uploading, id, onDrop }) => { +const AudioUpload: FC = ({ title, progress, uploading, id, onDrop }) => { const onDropFile = useCallback(() => { if (!id || !onDrop) return; onDrop(id); @@ -30,8 +30,8 @@ const AudioUpload: FC = ({ title, progress, is_uploading, id, onDrop }) )} -
- {is_uploading && ( +
+ {uploading && (
diff --git a/src/components/upload/ImageUpload/index.tsx b/src/components/upload/ImageUpload/index.tsx index 1095f60b..6e49a9e4 100644 --- a/src/components/upload/ImageUpload/index.tsx +++ b/src/components/upload/ImageUpload/index.tsx @@ -14,10 +14,10 @@ interface IProps { progress?: number; onDrop?: (file_id: IFile['id']) => void; - is_uploading?: boolean; + uploading?: boolean; } -const ImageUpload: FC = ({ thumb, progress, is_uploading, id, onDrop }) => { +const ImageUpload: FC = ({ thumb, progress, uploading, id, onDrop }) => { const onDropFile = useCallback(() => { if (!id || !onDrop) return; onDrop(id); @@ -31,9 +31,9 @@ const ImageUpload: FC = ({ thumb, progress, is_uploading, id, onDrop })
)} -
+
{thumb &&
} - {is_uploading && ( + {uploading && (