File tree 1 file changed +3
-5
lines changed
ui/src/pages/Converter/File
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 6
6
Icon ,
7
7
ResponsiveButton ,
8
8
ResponsiveSelectWithLabel ,
9
+ Spin ,
9
10
} from "components/General" ;
10
11
import styles from "./FileConverter.module.scss" ;
11
12
import { useFfmpeg } from "./useFfmpeg" ;
@@ -39,8 +40,6 @@ function FileConverter() {
39
40
fileConverter . file . name
40
41
) } ${ selectedFormat } `;
41
42
42
- console . log ( "ileConverter.to" , selectedFormat ) ;
43
-
44
43
await ffmpeg . writeFile (
45
44
fileConverter . file . name ,
46
45
await fetchFile ( fileConverter . file . originFileObj )
@@ -83,9 +82,6 @@ function FileConverter() {
83
82
} ,
84
83
onChange ( info ) {
85
84
const { status } = info . file ;
86
- if ( status !== "uploading" ) {
87
- // console.log(info.file, info.fileList);
88
- }
89
85
if ( status === "done" ) {
90
86
message . success (
91
87
`${ info . file . name } file uploaded successfully.`
@@ -147,6 +143,7 @@ function FileConverter() {
147
143
148
144
return (
149
145
< div className = { styles . ic } >
146
+ { ! loaded && < Spin /> }
150
147
< Dragger { ...props } >
151
148
< p className = "ant-upload-drag-icon" >
152
149
< Icon name = "Inbox" size = { 100 } strokeWidth = "0.2" />
@@ -162,6 +159,7 @@ function FileConverter() {
162
159
type = "primary"
163
160
onClick = { convertFiles }
164
161
disabled = { ! loaded }
162
+ icon
165
163
>
166
164
{ uploadFiles . length > 1 ? "Convert All" : "Convert" }
167
165
</ ResponsiveButton >
You can’t perform that action at this time.
0 commit comments