UNPKG

joywok-material-components

Version:

<h1 align="center"> Joywok Material Components </h1>

24 lines (20 loc) 606 B
import React from 'react'; import ReactDOM from 'react-dom'; import { withStyles } from '@material-ui/core/styles'; import Dialog from '@material-ui/core/Dialog'; const styles = theme => ({ }); class JwDialog extends React.Component{ constructor(props) { super(props); } render(){ let self = this; let data = this.props.data; return (<div className={"jw-dialog "+(this.props.className && this.props.className.length!=0?this.props.className:'')} > <Dialog {...this.props}>{this.props.children}</Dialog> </div> ) } } export default withStyles(styles)(JwDialog);