File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
packages/react-devtools-shared/src/devtools/views/Components Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ type Props = {
23
23
symbolicatedSourcePromise : Promise < SourceMappedLocation | null > ,
24
24
} ;
25
25
26
- function OpenInEditorButton ( {
26
+ function OpenSymbolicatedSourceInEditorButton ( {
27
27
editorURL,
28
28
source,
29
29
symbolicatedSourcePromise,
@@ -45,4 +45,17 @@ function OpenInEditorButton({
45
45
) ;
46
46
}
47
47
48
+ function OpenInEditorButton ( props : Props ) : React . Node {
49
+ return (
50
+ < React . Suspense
51
+ fallback = {
52
+ < Button disabled = { true } title = "retrieving original source…" >
53
+ < ButtonIcon type = "editor" />
54
+ </ Button >
55
+ } >
56
+ < OpenSymbolicatedSourceInEditorButton { ...props } />
57
+ </ React . Suspense >
58
+ ) ;
59
+ }
60
+
48
61
export default OpenInEditorButton ;
You can’t perform that action at this time.
0 commit comments