Fix linting
This commit is contained in:
@@ -17,7 +17,8 @@ import React, { FC } from 'react';
|
||||
import { Link as RouterLink, useLocation } from 'react-router-dom';
|
||||
import { ContentHeader, SupportButton } from '@backstage/core';
|
||||
import { Button, IconButton, Box, Typography } from '@material-ui/core';
|
||||
import { Settings as SettingsIcon, ArrowBack } from '@material-ui/icons';
|
||||
import ArrowBack from '@material-ui/icons/ArrowBack';
|
||||
import SettingsIcon from '@material-ui/icons/Settings';
|
||||
|
||||
export type Props = { title?: string };
|
||||
export const PluginHeader: FC<Props> = ({ title = 'Circle CI' }) => {
|
||||
|
||||
@@ -15,7 +15,8 @@
|
||||
*/
|
||||
import React, { FC } from 'react';
|
||||
import { Link, Typography, Box, IconButton } from '@material-ui/core';
|
||||
import { Replay as RetryIcon, GitHub as GithubIcon } from '@material-ui/icons';
|
||||
import RetryIcon from '@material-ui/icons/Replay';
|
||||
import GitHubIcon from '@material-ui/icons/GitHub';
|
||||
import { Link as RouterLink } from 'react-router-dom';
|
||||
import {
|
||||
StatusError,
|
||||
@@ -123,7 +124,7 @@ export const CITable: FC<{
|
||||
data={builds}
|
||||
title={
|
||||
<Box display="flex" alignItems="center">
|
||||
<GithubIcon />
|
||||
<GitHubIcon />
|
||||
<Box mr={1} />
|
||||
<Typography variant="h6">{projectName}</Typography>
|
||||
</Box>
|
||||
|
||||
@@ -29,7 +29,6 @@ export function useBuildWithSteps(buildId: number) {
|
||||
const api = useApi(circleCIApiRef);
|
||||
const errorApi = useApi(errorApiRef);
|
||||
|
||||
/* eslint-disable-line no-use-before-define */
|
||||
const { isPolling, startPolling, stopPolling } = useAsyncPolling(
|
||||
() => getBuildWithSteps(),
|
||||
INTERVAL_AMOUNT,
|
||||
|
||||
@@ -27,7 +27,6 @@ export function useBuilds() {
|
||||
|
||||
const api = useApi(circleCIApiRef);
|
||||
const errorApi = useApi(errorApiRef);
|
||||
// eslint-disable-line no-use-before-define
|
||||
const { isPolling, startPolling, stopPolling } = useAsyncPolling(
|
||||
() => getBuilds(),
|
||||
INTERVAL_AMOUNT,
|
||||
|
||||
Reference in New Issue
Block a user