mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix: export Dialog to extensions-api (#2105)
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
1 parent
035dd470ef
commit
741973dd29
3 files changed
+9
-6
No files matched your search
@@ -146,11 +146,10 @@ export class Dialog extends React.PureComponent<DialogProps, DialogState> {
|
||||
{dialog}
|
||||
</Animate>
|
||||
);
|
||||
}
|
||||
else if (!this.isOpen) {
|
||||
} else if (!this.isOpen) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return createPortal(dialog, document.body);
|
||||
return createPortal(dialog, document.body) as React.ReactPortal;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user