diff --git a/packages/girder-ui/package-lock.json b/packages/girder-ui/package-lock.json index 23bba167..90e6dd8c 100644 --- a/packages/girder-ui/package-lock.json +++ b/packages/girder-ui/package-lock.json @@ -1,6 +1,6 @@ { "name": "@openchemistry/girder-ui", - "version": "0.0.25", + "version": "0.0.26", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -2722,11 +2722,6 @@ "readable-stream": "^2.0.2" } }, - "redux-form-material-ui": { - "version": "5.0.0-beta.3", - "resolved": "https://registry.npmjs.org/redux-form-material-ui/-/redux-form-material-ui-5.0.0-beta.3.tgz", - "integrity": "sha512-YoUZi6VvqoGDYk00bObf/2laTKZ4ApE5Bd7gItkgDYKor84K/kbzVj255oYNf8rMCAzXjQDQ2RgX3PSyES4uvQ==" - }, "regenerate": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.0.tgz", diff --git a/packages/girder-ui/package.json b/packages/girder-ui/package.json index f251489f..96c46d2c 100644 --- a/packages/girder-ui/package.json +++ b/packages/girder-ui/package.json @@ -21,8 +21,7 @@ "homepage": "https://github.com/OpenChemistry/oc-web-components#readme", "dependencies": { "@openchemistry/girder-redux": "^0.0.22", - "lodash-es": "^4.17.11", - "redux-form-material-ui": "^5.0.0-beta.3" + "lodash-es": "^4.17.11" }, "devDependencies": { "@babel/cli": "^7.1.5", diff --git a/packages/girder-ui/src/auth/components/username-login/index.js b/packages/girder-ui/src/auth/components/username-login/index.js index 16077b67..c48d478e 100644 --- a/packages/girder-ui/src/auth/components/username-login/index.js +++ b/packages/girder-ui/src/auth/components/username-login/index.js @@ -7,7 +7,8 @@ import { Dialog, DialogActions, DialogContent, - DialogTitle + DialogTitle, + TextField } from '@material-ui/core'; import red from '@material-ui/core/colors/red'; @@ -15,11 +16,24 @@ import red from '@material-ui/core/colors/red'; import InputIcon from '@material-ui/icons/Input'; import ClearIcon from '@material-ui/icons/Clear'; -import { - TextField -} from 'redux-form-material-ui'; import { Field } from 'redux-form' +const renderTextField = ({ + label, + input, + meta: { touched, invalid, error }, + ...custom +}) => ( + +) + const red500 = red['500']; const style = { @@ -59,7 +73,7 @@ class GirderLogin extends Component { @@ -68,7 +82,7 @@ class GirderLogin extends Component {