Fixing TS and updating snapshot

This commit is contained in:
Dominik Prokop 2019-01-10 14:24:24 +01:00
parent 7819529d45
commit 53f0f08efa
6 changed files with 21 additions and 3 deletions

View File

@ -1,4 +1,7 @@
import React from 'react'; 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'; import { components } from '@torkelo/react-select';
export const IndicatorsContainer = (props: any) => { export const IndicatorsContainer = (props: any) => {

View File

@ -1,5 +1,9 @@
import React from 'react'; 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'; import { components } from '@torkelo/react-select';
// @ts-ignore
import { OptionProps } from '@torkelo/react-select/lib/components/Option'; import { OptionProps } from '@torkelo/react-select/lib/components/Option';
export interface Props { export interface Props {

View File

@ -38,9 +38,7 @@ describe('PickerOption', () => {
<PickerOption <PickerOption
{...model} {...model}
data={{ data={{
title: 'Model title',
imgUrl: 'url/to/avatar', imgUrl: 'url/to/avatar',
label: 'User picker label',
}} }}
/> />
) )

View File

@ -1,4 +1,7 @@
import React from 'react'; 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'; import { components } from '@torkelo/react-select';
import { OptionProps } from 'react-select/lib/components/Option'; import { OptionProps } from 'react-select/lib/components/Option';

View File

@ -1,8 +1,13 @@
// Libraries // Libraries
import classNames from 'classnames'; import classNames from 'classnames';
import React, { PureComponent } from 'react'; import React, { PureComponent } from 'react';
// Ignoring because I couldn't get @types/react-select work wih Torkel's fork
// @ts-ignore
import { default as ReactSelect } from '@torkelo/react-select'; import { default as ReactSelect } from '@torkelo/react-select';
// @ts-ignore
import { default as ReactAsyncSelect } from '@torkelo/react-select/lib/Async'; import { default as ReactAsyncSelect } from '@torkelo/react-select/lib/Async';
// @ts-ignore
import { components } from '@torkelo/react-select'; import { components } from '@torkelo/react-select';
// Components // Components

View File

@ -1,7 +1,12 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`PickerOption renders correctly 1`] = ` exports[`PickerOption renders correctly 1`] = `
<div> <div
id=""
onClick={[MockFunction]}
onMouseOver={[MockFunction]}
tabIndex={1}
>
<div <div
className="gf-form-select-box__desc-option" className="gf-form-select-box__desc-option"
> >