()
| 26 | let render = () => { }; |
| 27 | |
| 28 | function ProgressDialog() { |
| 29 | const [, setRender] = React.useState(0); |
| 30 | React.useEffect(() => { |
| 31 | render = () => setRender((r) => r + 1); |
| 32 | }, []); |
| 33 | return <MantineProvider> |
| 34 | <div |
| 35 | style={{ |
| 36 | textAlign: 'center', marginBottom: '5px', color: 'gray', fontSize: 'small', |
| 37 | }} |
| 38 | >{uploadLabel}</div> |
| 39 | <Progress value={uploadProgress} /> |
| 40 | <div |
| 41 | style={{ |
| 42 | textAlign: 'center', margin: '5px 0', color: 'gray', fontSize: 'small', |
| 43 | }} |
| 44 | >{fileLabel}</div> |
| 45 | <Progress value={fileProgress} /> |
| 46 | </MantineProvider>; |
| 47 | } |
| 48 | |
| 49 | const dialog = new Dialog({ |
| 50 | $body: $(tpl(<ProgressDialog />, true)), |
nothing calls this directly
no outgoing calls
no test coverage detected