linting fixes
This commit is contained in:
parent
6b65fc7278
commit
85c3fbc8b8
7 changed files with 13 additions and 15 deletions
|
|
@ -1,12 +1,12 @@
|
|||
import React, { useCallback, useState, FC } from 'react';
|
||||
import React, { FC } from 'react';
|
||||
|
||||
import { Button, VerticalGroup, Icon, Field, Input } from '@grafana/ui';
|
||||
import cn from 'classnames/bind';
|
||||
import { observer } from 'mobx-react';
|
||||
|
||||
import { SlackNewIcon } from 'icons';
|
||||
import Block from 'components/GBlock/Block';
|
||||
import Text from 'components/Text/Text';
|
||||
import { SlackNewIcon } from 'icons';
|
||||
|
||||
import styles from './SlackInstructions.module.css';
|
||||
|
||||
|
|
@ -14,7 +14,7 @@ const cx = cn.bind(styles);
|
|||
|
||||
interface SlackInstructionsProps {}
|
||||
/* This component will be used when we will work on moving ENV variables to chat-ops, but we need to do work on backend side first */
|
||||
const SlackInstructions: FC<SlackInstructionsProps> = observer((props) => {
|
||||
const SlackInstructions: FC<SlackInstructionsProps> = observer(() => {
|
||||
return (
|
||||
<div>
|
||||
<VerticalGroup spacing="lg">
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ import cn from 'classnames/bind';
|
|||
import { observer } from 'mobx-react';
|
||||
import CopyToClipboard from 'react-copy-to-clipboard';
|
||||
|
||||
import Text from 'components/Text/Text';
|
||||
import Block from 'components/GBlock/Block';
|
||||
import Text from 'components/Text/Text';
|
||||
import { WithPermissionControl } from 'containers/WithPermissionControl/WithPermissionControl';
|
||||
import { useStore } from 'state/useStore';
|
||||
import { UserAction } from 'state/userAction';
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ import React, { useCallback } from 'react';
|
|||
import { Button, VerticalGroup, Icon } from '@grafana/ui';
|
||||
import cn from 'classnames/bind';
|
||||
|
||||
import Text from 'components/Text/Text';
|
||||
import Block from 'components/GBlock/Block';
|
||||
import Text from 'components/Text/Text';
|
||||
import { SlackNewIcon } from 'icons';
|
||||
import { useStore } from 'state/useStore';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
import React, { HTMLAttributes, useEffect, useState } from 'react';
|
||||
|
||||
import { Alert, Button, HorizontalGroup, Icon, VerticalGroup, Field, Input } from '@grafana/ui';
|
||||
import { Button, Icon, VerticalGroup, Field, Input } from '@grafana/ui';
|
||||
import cn from 'classnames/bind';
|
||||
import { observer } from 'mobx-react';
|
||||
import CopyToClipboard from 'react-copy-to-clipboard';
|
||||
|
||||
import Block from 'components/GBlock/Block';
|
||||
import PluginLink from 'components/PluginLink/PluginLink';
|
||||
import Text from 'components/Text/Text';
|
||||
import Block from 'components/GBlock/Block';
|
||||
import { TelegramColorIcon } from 'icons';
|
||||
import { AppFeature } from 'state/features';
|
||||
import { useStore } from 'state/useStore';
|
||||
import { openNotification } from 'utils';
|
||||
import { TelegramColorIcon } from 'icons';
|
||||
|
||||
import styles from './TelegramInfo.module.css';
|
||||
|
||||
|
|
|
|||
|
|
@ -293,7 +293,7 @@ export const TelegramColorIcon = () => {
|
|||
</svg>
|
||||
);
|
||||
};
|
||||
export const SlackNewIcon = (props: IconProps) => (
|
||||
export const SlackNewIcon = () => (
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="48px" height="48px">
|
||||
<path
|
||||
fill="#33d375"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ import { Field, HorizontalGroup, LoadingPlaceholder, VerticalGroup, Icon, Button
|
|||
import cn from 'classnames/bind';
|
||||
import { observer } from 'mobx-react';
|
||||
|
||||
import { SlackNewIcon } from 'icons';
|
||||
import Block from 'components/GBlock/Block';
|
||||
import PluginLink from 'components/PluginLink/PluginLink';
|
||||
import Text from 'components/Text/Text';
|
||||
|
|
@ -12,6 +11,7 @@ import WithConfirm from 'components/WithConfirm/WithConfirm';
|
|||
import GSelect from 'containers/GSelect/GSelect';
|
||||
import RemoteSelect from 'containers/RemoteSelect/RemoteSelect';
|
||||
import { WithPermissionControl } from 'containers/WithPermissionControl/WithPermissionControl';
|
||||
import { SlackNewIcon } from 'icons';
|
||||
import { PRIVATE_CHANNEL_NAME } from 'models/slack_channel/slack_channel.config';
|
||||
import { SlackChannel } from 'models/slack_channel/slack_channel.types';
|
||||
import { AppFeature } from 'state/features';
|
||||
|
|
|
|||
|
|
@ -1,22 +1,20 @@
|
|||
import React, { Component } from 'react';
|
||||
|
||||
import { Alert, Badge, Button, HorizontalGroup, Icon, LoadingPlaceholder, VerticalGroup } from '@grafana/ui';
|
||||
import { Badge, Button, HorizontalGroup, Icon, LoadingPlaceholder, VerticalGroup } from '@grafana/ui';
|
||||
import cn from 'classnames/bind';
|
||||
import { observer } from 'mobx-react';
|
||||
|
||||
import Block from 'components/GBlock/Block';
|
||||
import GTable from 'components/GTable/GTable';
|
||||
import PluginLink from 'components/PluginLink/PluginLink';
|
||||
import Text from 'components/Text/Text';
|
||||
import Block from 'components/GBlock/Block';
|
||||
import Tutorial from 'components/Tutorial/Tutorial';
|
||||
import { TutorialStep } from 'components/Tutorial/Tutorial.types';
|
||||
import WithConfirm from 'components/WithConfirm/WithConfirm';
|
||||
import TelegramIntegrationButton from 'containers/TelegramIntegrationButton/TelegramIntegrationButton';
|
||||
import { TelegramColorIcon } from 'icons';
|
||||
import { TelegramChannel } from 'models/telegram_channel/telegram_channel.types';
|
||||
import { AppFeature } from 'state/features';
|
||||
import { WithStoreProps } from 'state/types';
|
||||
import { withMobXProviderContext } from 'state/withStore';
|
||||
import { TelegramColorIcon } from 'icons';
|
||||
|
||||
import styles from './TelegramSettings.module.css';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue