Skip to content

Commit

Permalink
make dialogHelper working again
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas committed Jan 9, 2025
1 parent 240236f commit 6d9fbc1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions viewer/components/OverlayDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,13 @@ export const dialogHelper=(thisref,stateName,opt_closeCallback)=>{
},
getRender(){
if (!thisref.state[stateName]) return null;
return dialogDisplay(thisref.state[stateName],()=>{
this.hideDialog()
});
const D=thisref.state[stateName];
return (
<DialogDisplay closeCallback={()=>{
this.hideDialog()
}}>
<D/>
</DialogDisplay> );
},
isShowing(){
return !!thisref.state[stateName];
Expand Down

0 comments on commit 6d9fbc1

Please sign in to comment.