lint fixes

This commit is contained in:
Yulia Shanyrova 2022-09-09 13:11:44 +02:00
parent 351d7d2b94
commit e72be018fc
8 changed files with 18 additions and 10 deletions

View file

@ -244,8 +244,8 @@ const AlertTemplatesForm = (props: AlertTemplatesFormProps) => {
<div className={cx('web-title-message')}>
<Text type="secondary" size="small">
Please note that after changing the web title template new alert groups will be searchable by
new title. Alert groups created before the template was changed will be still searchable by
old title only.
new title. Alert groups created before the template was changed will be still searchable by old
title only.
</Text>
</div>
)}

View file

@ -15,7 +15,7 @@ interface CollapseProps {
className?: string;
contentClassName?: string;
headerWithBackground?: boolean;
children?: any
children?: any;
}
const cx = cn.bind(styles);

View file

@ -11,7 +11,7 @@ interface PluginLinkProps extends LocationUpdate {
disabled?: boolean;
className?: string;
wrap?: boolean;
children: any
children: any;
}
const cx = cn.bind(styles);

View file

@ -13,7 +13,7 @@ const cx = cn.bind(styles);
interface SourceCodeProps {
noMaxHeight?: boolean;
showCopyToClipboard?: boolean;
children?: any
children?: any;
}
const SourceCode: FC<SourceCodeProps> = (props) => {

View file

@ -81,7 +81,7 @@ const Text: TextType = (props) => {
'text--strong': strong,
'text--underline': underline,
'no-wrap': !wrap,
keyboard
keyboard,
})}
>
{hidden ? PLACEHOLDER : children}

View file

@ -41,7 +41,7 @@ export default VerticalTabsBar;
interface TabProps {
id: string;
children?: any
children?: any;
}
export const VerticalTab: FC<TabProps> = ({ children }) => {

View file

@ -8,6 +8,7 @@ import cn from 'classnames/bind';
import { observer } from 'mobx-react';
import PluginLink from 'components/PluginLink/PluginLink';
import { getIfChatOpsConnected } from 'containers/DefaultPageLayout/helper';
import { useStore } from 'state/useStore';
import { UserAction } from 'state/userAction';
import { GRAFANA_LICENSE_OSS } from 'utils/consts';
@ -17,7 +18,6 @@ import sanitize from 'utils/sanitize';
import { getSlackMessage } from './DefaultPageLayout.helpers';
import { SlackError } from './DefaultPageLayout.types';
import { getIfChatOpsConnected } from 'containers/DefaultPageLayout/helper';
import styles from './DefaultPageLayout.module.css';
@ -113,7 +113,11 @@ const DefaultPageLayout: FC<DefaultPageLayoutProps> = observer((props) => {
{`Current plugin version: ${plugin.version}, current engine version: ${store.backendVersion}`}
<br />
Please see{' '}
<a href={'https://grafana.com/docs/oncall/latest/open-source/#update-grafana-oncall-oss'} target="_blank" rel="noreferrer">
<a
href={'https://grafana.com/docs/oncall/latest/open-source/#update-grafana-oncall-oss'}
target="_blank"
rel="noreferrer"
>
the update instructions
</a>
.

View file

@ -285,7 +285,11 @@ Seek for such a line: “Your invite token: <<LONG TOKEN>> , use it in the Graf
>
<>
<Input id="onCallInvitationToken" onChange={handleInvitationTokenChange} />
<a href="https://github.com/grafana/oncall/blob/dev/DEVELOPER.md#frontend-setup" target="_blank" rel="noreferrer">
<a
href="https://github.com/grafana/oncall/blob/dev/DEVELOPER.md#frontend-setup"
target="_blank"
rel="noreferrer"
>
<Text size="small" type="link">
How to re-issue the invite token?
</Text>