diff --git a/plugin-config/info.json b/plugin-config/info.json index dc193d9..ea4fc72 100644 --- a/plugin-config/info.json +++ b/plugin-config/info.json @@ -1,6 +1,6 @@ { "name": "map-en", - "version": "0.0.4", + "version": "0.0.5", "display_name": { "cs": "Mapy", "de": "Karten", diff --git a/src/app.js b/src/app.js index f6d0d9f..a15b577 100644 --- a/src/app.js +++ b/src/app.js @@ -462,7 +462,8 @@ class App extends React.Component { {showSettingDialog && ( )} diff --git a/src/components/local-settings-widgets/dtable-select.js b/src/components/local-settings-widgets/dtable-select.js deleted file mode 100644 index fd007ce..0000000 --- a/src/components/local-settings-widgets/dtable-select.js +++ /dev/null @@ -1,76 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import Select, { components } from 'react-select'; - -const DropdownIndicator = props => { - return ( - components.DropdownIndicator && ( - - - - ) - ); -}; - -const Option = props => { - return ( -
- -
- ); -}; - -Option.propTypes = { - data: PropTypes.shape({ - style: PropTypes.object, - }), -}; - -const DTableSelectStyle = { - control: styles => ({ ...styles, fontSize: '14px', cursor: 'pointer', lineHeight: '1.5'}), - indicatorSeparator: () => {}, -}; - -class DTableSelect extends React.Component { - - static propTypes = { - options: PropTypes.array.isRequired, - value: PropTypes.object, - isSearchable: PropTypes.bool, - placeholder: PropTypes.string, - onChange: PropTypes.func.isRequired, - }; - - static defaultProps = { - options: [], - value: {}, - isSearchable: false, - placeholder: '', - }; - - getMenuPortalTarget = () => { - return document.querySelector('.modal'); - } - - render() { - const { options, onChange, value, isSearchable, placeholder } = this.props; - - return( -