«
Předchozí
|
Další
»
Revize 14588cb6
Přidáno uživatelem Václav Honzík před asi 2 roky(ů)
- ID 14588cb653e6b7358e0e641cc2b8d45dc27b5cf8
- Rodič fc8a530f
frontend/src/features/Reusables/SingleFileSelectionForm.tsx | ||
---|---|---|
9 | 9 |
onFileSelected: (event: any) => void |
10 | 10 |
formik: any |
11 | 11 |
onClearSelectedFile: () => void |
12 |
loading?: boolean |
|
12 | 13 |
} |
13 | 14 |
|
14 | 15 |
const SingleFileSelectionForm: FunctionComponent< |
15 | 16 |
SingleFileSelectionFormProps |
16 |
> = ({ filename, onFileSelected, formik, onClearSelectedFile }) => { |
|
17 |
> = ({ filename, onFileSelected, formik, onClearSelectedFile, loading }) => {
|
|
17 | 18 |
return ( |
18 | 19 |
<form onSubmit={formik.handleSubmit}> |
19 | 20 |
{!filename ? ( |
... | ... | |
76 | 77 |
type="submit" |
77 | 78 |
variant="contained" |
78 | 79 |
startIcon={<SendIcon />} |
80 |
disabled={loading} |
|
79 | 81 |
> |
80 | 82 |
Submit |
81 | 83 |
</Button> |
Také k dispozici: Unified diff
fixed keys and indices
re #9741