Commit 53f0f08e by Dominik Prokop

Fixing TS and updating snapshot

parent 7819529d
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) => {
......
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 {
......
...@@ -38,9 +38,7 @@ describe('PickerOption', () => { ...@@ -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',
}} }}
/> />
) )
......
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';
......
// 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
......
// 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"
> >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment