MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / ProgressDialog

Function ProgressDialog

packages/ui-default/components/upload.tsx:28–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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)),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected