Skip to content

Commit f8c740a

Browse files
committed
Fixes
1 parent 8b4fc34 commit f8c740a

File tree

3 files changed

+491
-430
lines changed

3 files changed

+491
-430
lines changed

webview/src/components/GUI.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export class VisualizerHeader extends React.Component<{ model: Model }> {
7878
@observer
7979
export class VisualizerHeaderMain extends React.Component<{ model: Model }> {
8080
render() {
81+
const Spinner_ = Spinner as any; // WTF typescript??
8182
const m = this.props.model;
8283
return (
8384
<div
@@ -94,7 +95,7 @@ export class VisualizerHeaderMain extends React.Component<{ model: Model }> {
9495
{!m.isPolling &&
9596
(m.loading ? (
9697
<div style={{ padding: "0 4px" }}>
97-
<Spinner size={Spinner.SIZE_SMALL} />
98+
<Spinner_ size={Spinner.SIZE_SMALL} />
9899
</div>
99100
) : (
100101
<Button minimal small className="part-Icon" icon="refresh" onClick={() => m.refresh()} />

webview/src/hotComponent.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ export function hotComponent(
4343

4444
return observer((props: any) => {
4545
const C = result!.component;
46-
return <C {...props} />;
46+
const C_ = C as any; // WTF typescript/yarn??
47+
return <C_ {...props} />;
4748
}) as any;
4849
};
4950
}

0 commit comments

Comments
 (0)