diff --git a/coreplugins/cesiumion/public/components/BootstrapField.jsx b/coreplugins/cesiumion/public/components/BootstrapField.jsx
index 4c0138ee..360a98c2 100644
--- a/coreplugins/cesiumion/public/components/BootstrapField.jsx
+++ b/coreplugins/cesiumion/public/components/BootstrapField.jsx
@@ -1,12 +1,5 @@
import { Formik, Field, getIn } from "formik";
-
-import {
- FormGroup,
- ControlLabel,
- FormControl,
- Checkbox,
- HelpBlock
-} from "react-bootstrap";
+import { Checkbox } from "../../../../app/static/app/js/components/Toggle";
const BootstrapFieldComponent = ({
field,
@@ -18,28 +11,26 @@ const BootstrapFieldComponent = ({
...props
}) => {
const isError = getIn(errors, field.name) && getIn(touched, field.name);
- const errorMsg = getIn(errors, field.name);
- let ControlComponent = FormControl;
+ const errorMsg = getIn(errors, field.name);
+ let ControlComponent = 'input';
- const testType = type.toLowerCase();
- if (testType === "checkbox") ControlComponent = Checkbox;
- else if (testType === "textarea" || testType === "select")
- props.componentClass = testType;
- else props.type = type;
+ const testType = type.toLowerCase();
+ if (testType === "checkbox") ControlComponent = Checkbox;
+ else if (testType === "textarea" || testType === "select")
+ ControlComponent = testType;
+ else props.type = type;
- return (
-
- {label && {label}}
-
- {isError && {errorMsg}}
- {help && !isError && {help}}
- {isError && showIcon && }
-
- );
+ return (
+
+ {label && }
+
+ {isError && {errorMsg}}
+ {help && !isError && {help}}
+
+ );
};
const BootstrapField = props => (
diff --git a/coreplugins/cesiumion/public/components/IonAssetButton.jsx b/coreplugins/cesiumion/public/components/IonAssetButton.jsx
index f0462dc3..7af52c06 100644
--- a/coreplugins/cesiumion/public/components/IonAssetButton.jsx
+++ b/coreplugins/cesiumion/public/components/IonAssetButton.jsx
@@ -22,12 +22,10 @@ export default class IonAssetButton extends PureComponent {
} = this.props;
const menuItems = assets
- .sort((a, b) =>
- AssetStyles[a].name.localeCompare(AssetStyles[b].name)
- )
+ .sort((a, b) => AssetStyles[a].name.localeCompare(AssetStyles[b].name))
.map(asset => (
-
-
+
+
diff --git a/coreplugins/cesiumion/public/components/UploadDialog.jsx b/coreplugins/cesiumion/public/components/UploadDialog.jsx
index 48bcdd7f..5fed14ab 100644
--- a/coreplugins/cesiumion/public/components/UploadDialog.jsx
+++ b/coreplugins/cesiumion/public/components/UploadDialog.jsx
@@ -1,9 +1,8 @@
import React, { Component, Fragment } from "react";
-import FormDialog from "webodm/components/FormDialog";
+import FormDialog from "../../../../app/static/app/js/components/FormDialog";
import { Formik } from "formik";
import * as Yup from "yup";
-import { Row, Col, Modal, Button } from "react-bootstrap";
import BootstrapField from "./BootstrapField";
import FormikErrorFocus from "./FormikErrorFocus";
@@ -159,67 +158,109 @@ export default class UploadDialog extends Component {
...initialValues
};
+ // return (
+ //
+ //
+ //
+ // {title}
+ //
+ //
+ //
+ // {({ handleSubmit = () => {} }) => (
+ //
+ // )}
+ //
+ //
+ // );
return (
-
-
-
- {title}
-
-
-
- {({ handleSubmit = () => {} }) => (
-
- )}
-
-
- );
+
+
+ )}
+
+
+ );
}
}