help and box shadows

This commit is contained in:
SpikeHD
2022-05-24 21:54:10 -07:00
parent b4a6c2cb35
commit 5c1f3ecbaf
6 changed files with 26 additions and 7 deletions

View File

@@ -5,7 +5,8 @@ import Help from '../../../resources/icons/help.svg'
import MiniDialog from '../MiniDialog'
interface IProps {
contents: string
children?: React.ReactNode[] | React.ReactNode;
contents?: string
id?: string
}
@@ -44,7 +45,7 @@ export default class HelpButton extends React.Component<IProps, IState> {
display: this.state.opened ? 'block' : 'none'
}}>
<MiniDialog closeFn={this.setClosed}>
{this.props.contents}
{this.props.contents || this.props.children}
</MiniDialog>
</div>
</div>