@@ -1,4 +1,7 @@
import React from 'react';
+
+// Ignoring because I couldn't get @types/react-select work wih Torkel's fork
+// @ts-ignore
import { components } from '@torkelo/react-select';
export const IndicatorsContainer = (props: any) => {
@@ -1,5 +1,9 @@
import { OptionProps } from '@torkelo/react-select/lib/components/Option';
export interface Props {
@@ -38,9 +38,7 @@ describe('PickerOption', () => {
<PickerOption
{...model}
data={{
- title: 'Model title',
imgUrl: 'url/to/avatar',
- label: 'User picker label',
}}
/>
)
import { OptionProps } from 'react-select/lib/components/Option';
@@ -1,8 +1,13 @@
// Libraries
import classNames from 'classnames';
import React, { PureComponent } from 'react';
import { default as ReactSelect } from '@torkelo/react-select';
import { default as ReactAsyncSelect } from '@torkelo/react-select/lib/Async';
// Components
@@ -1,7 +1,12 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`PickerOption renders correctly 1`] = `
-<div>
+<div
+ id=""
+ onClick={[MockFunction]}
+ onMouseOver={[MockFunction]}
+ tabIndex={1}
+>
<div
className="gf-form-select-box__desc-option"
>