diff --git a/plugins/circleci/src/components/ProjectInput/ProjectInput.tsx b/plugins/circleci/src/components/ProjectInput/ProjectInput.tsx deleted file mode 100644 index fe4cb61446..0000000000 --- a/plugins/circleci/src/components/ProjectInput/ProjectInput.tsx +++ /dev/null @@ -1,48 +0,0 @@ -import { useState, FC, useEffect } from 'react'; -import { ListItem, TextField, Button } from '@material-ui/core'; -import React from 'react'; - -export const ProjectInput: FC<{ - setGitInfo: (info: { owner: string; repo: string }) => void; - apiGitInfo?: { owner?: string; repo?: string }; -}> = ({ setGitInfo, apiGitInfo = {} }) => { - const [owner, setOwner] = useState(''); - const [repo, setRepo] = useState(''); - - useEffect(() => { - if (apiGitInfo.owner !== owner && apiGitInfo.owner) - setOwner(apiGitInfo.owner); - if (apiGitInfo.repo !== repo && apiGitInfo.repo) setRepo(apiGitInfo.repo); - }, [apiGitInfo]); - - return ( - <> - - setOwner(e.target.value)} - /> - - - setRepo(e.target.value)} - /> - - - - - - ); -}; diff --git a/plugins/circleci/src/pages/SettingsPage/SettingsPage.tsx b/plugins/circleci/src/pages/SettingsPage/SettingsPage.tsx index 8ea1a4d4fb..028b09d07f 100644 --- a/plugins/circleci/src/pages/SettingsPage/SettingsPage.tsx +++ b/plugins/circleci/src/pages/SettingsPage/SettingsPage.tsx @@ -7,6 +7,8 @@ import { Content, ContentHeader, SupportButton, + // StatusOK, + StatusFailed, } from '@backstage/core'; import { Link as RouterLink } from 'react-router-dom'; import { Layout } from 'components/Layout'; @@ -46,7 +48,14 @@ export const SettingsPage = () => { - + + + + } + > {authed ? ( <>Authenticated @@ -78,22 +87,13 @@ export const SettingsPage = () => { onChange={(e) => setRepo(e.target.value)} /> - - -