mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-16 17:14:36 +01:00
fix commands and stylign
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import React from 'react'
|
||||
|
||||
import Close from '../../resources/icons/close.svg'
|
||||
import './MiniDialog.css'
|
||||
|
||||
interface IProps {
|
||||
children: React.ReactNode[] | React.ReactNode;
|
||||
closeFn: () => void;
|
||||
}
|
||||
|
||||
export default class MiniDialog extends React.Component<IProps, never> {
|
||||
@@ -14,7 +16,13 @@ export default class MiniDialog extends React.Component<IProps, never> {
|
||||
render() {
|
||||
return (
|
||||
<div className="MiniDialog">
|
||||
{this.props.children}
|
||||
<div className="MiniDialogTop" onClick={this.props.closeFn}>
|
||||
<div></div>
|
||||
<img src={Close} className="MiniDialogClose" />
|
||||
</div>
|
||||
<div className="MiniDialogInner">
|
||||
{this.props.children}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user