mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 16:14:48 +01:00
help and box shadows
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user