mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-06 01:15:28 +02:00
parent
8d84ec04c2
commit
c9ea64639e
@ -31,6 +31,7 @@
|
|||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"debug": "^2.2.0",
|
"debug": "^2.2.0",
|
||||||
|
"dialog-polyfill": "^0.4.5",
|
||||||
"immutability-helper": "^2.0.0",
|
"immutability-helper": "^2.0.0",
|
||||||
"immutable": "^3.8.1",
|
"immutable": "^3.8.1",
|
||||||
"normalize.css": "^5.0.0",
|
"normalize.css": "^5.0.0",
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import React, { PropTypes } from 'react';
|
import React, { PropTypes } from 'react';
|
||||||
import { Textfield, Dialog, DialogTitle, DialogContent, DialogActions, Button } from 'react-mdl';
|
import { Textfield, Dialog, DialogTitle, DialogContent, DialogActions, Button } from 'react-mdl';
|
||||||
|
import dialogPolyfill from 'dialog-polyfill/dialog-polyfill.js';
|
||||||
|
|
||||||
class EditUserComponent extends React.Component {
|
class EditUserComponent extends React.Component {
|
||||||
static propTypes () {
|
static propTypes () {
|
||||||
@ -10,11 +11,20 @@ class EditUserComponent extends React.Component {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentDidMount () {
|
||||||
|
this.initPolyfill();
|
||||||
|
}
|
||||||
|
|
||||||
handleSubmit = (evt) => {
|
handleSubmit = (evt) => {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
this.props.save();
|
this.props.save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
initPolyfill () {
|
||||||
|
const dialogs = document.querySelectorAll('dialog');
|
||||||
|
[].slice.call(dialogs).forEach(dialog => dialogPolyfill.registerDialog(dialog));
|
||||||
|
}
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
|
import 'dialog-polyfill/dialog-polyfill.css';
|
||||||
|
import 'whatwg-fetch';
|
||||||
import 'react-mdl/extra/material.css';
|
import 'react-mdl/extra/material.css';
|
||||||
import 'react-mdl/extra/material.js';
|
import 'react-mdl/extra/material.js';
|
||||||
import 'whatwg-fetch';
|
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
|
Loading…
Reference in New Issue
Block a user