diff --git a/public/app/core/components/Picker/ValueContainer.tsx b/public/app/core/components/Picker/ValueContainer.tsx deleted file mode 100644 index 2ce42f97d5b..00000000000 --- a/public/app/core/components/Picker/ValueContainer.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import React from 'react'; -import { components } from 'react-select'; - -export const ValueContainer = props => { - const { children, getValue, options } = props; - console.log('getValue', getValue()); - console.log('options', options); - const existingValue = getValue(); - const selectedOption = options.find(i => (existingValue[0] ? i.id === existingValue[0].id : undefined)); - console.log('selectedOption', selectedOption); - return ( - - {children} - {/* {selectedOption ? - {selectedOption.label} - : children} */} - - ); -}; - -export default ValueContainer; diff --git a/public/app/core/components/TagFilter/TagOption.tsx b/public/app/core/components/TagFilter/TagOption.tsx index a50fa24d177..e4e91f93c00 100644 --- a/public/app/core/components/TagFilter/TagOption.tsx +++ b/public/app/core/components/TagFilter/TagOption.tsx @@ -20,56 +20,3 @@ export const TagOption = (props: ExtendedOptionProps) => { }; export default TagOption; - -// import React from 'react'; -// import { TagBadge } from './TagBadge'; - -// export interface Props { -// onSelect: any; -// onFocus: any; -// option: any; -// isFocused: any; -// className: any; -// } - -// export class TagOption extends React.Component { -// constructor(props) { -// super(props); -// this.handleMouseDown = this.handleMouseDown.bind(this); -// this.handleMouseEnter = this.handleMouseEnter.bind(this); -// this.handleMouseMove = this.handleMouseMove.bind(this); -// } - -// handleMouseDown(event) { -// event.preventDefault(); -// event.stopPropagation(); -// this.props.onSelect(this.props.option, event); -// } - -// handleMouseEnter(event) { -// this.props.onFocus(this.props.option, event); -// } - -// handleMouseMove(event) { -// if (this.props.isFocused) { -// return; -// } -// this.props.onFocus(this.props.option, event); -// } - -// render() { -// const { option, className } = this.props; - -// return ( -// -// ); -// } -// }