mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
conditional dialog rendering
This commit is contained in:
parent
41f40a783f
commit
a4b620471a
1 changed files with 21 additions and 16 deletions
|
@ -73,12 +73,16 @@ export class Component extends React.PureComponent<ITitleDialogProps, ITitleDial
|
|||
onMouseOver={this.onHover}
|
||||
onMouseOut={this.onLeave}
|
||||
>
|
||||
{
|
||||
title &&
|
||||
<div
|
||||
className="title-dialog-pane title-dialog-name"
|
||||
ref={el => { this.ref_title = el; }}
|
||||
>
|
||||
<h2>{title}</h2>
|
||||
</div>
|
||||
}
|
||||
{
|
||||
<div
|
||||
className="title-dialog-pane title-dialog-text"
|
||||
style={{
|
||||
|
@ -93,6 +97,7 @@ export class Component extends React.PureComponent<ITitleDialogProps, ITitleDial
|
|||
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue