fix(striker-ui): remove job details link for now

This commit is contained in:
Tsu-ba-me 2023-06-19 15:37:03 -04:00
parent 6c1910d6e3
commit 3fd611eebb

View File

@ -5,11 +5,9 @@ import API_BASE_URL from '../lib/consts/API_BASE_URL';
import { ProgressBar } from './Bars'; import { ProgressBar } from './Bars';
import FlexBox from './FlexBox'; import FlexBox from './FlexBox';
import Link from './Link';
import List from './List'; import List from './List';
import periodicFetch from '../lib/fetchers/periodicFetch'; import periodicFetch from '../lib/fetchers/periodicFetch';
import { BodyText } from './Text'; import { BodyText } from './Text';
import useProtect from '../hooks/useProtect';
import useProtectedState from '../hooks/useProtectedState'; import useProtectedState from '../hooks/useProtectedState';
type AnvilJobs = { type AnvilJobs = {
@ -57,9 +55,7 @@ const JobSummary = forwardRef<JobSummaryForwardedRefContent, JobSummaryProps>(
}, },
ref, ref,
) => { ) => {
const { protect } = useProtect(); const [anvilJobs, setAnvilJobs] = useProtectedState<AnvilJobs>({});
const [anvilJobs, setAnvilJobs] = useProtectedState<AnvilJobs>({}, protect);
const [isOpenJobSummary, setIsOpenJobSummary] = const [isOpenJobSummary, setIsOpenJobSummary] =
useState<boolean>(openInitially); useState<boolean>(openInitially);
const [menuAnchorElement, setMenuAnchorElement] = useState< const [menuAnchorElement, setMenuAnchorElement] = useState<
@ -116,7 +112,6 @@ const JobSummary = forwardRef<JobSummaryForwardedRefContent, JobSummaryProps>(
</FlexBox> </FlexBox>
)} )}
/> />
<Link href="cgi-bin/striker?jobs=true">More details</Link>
</FlexBox> </FlexBox>
), ),
[anvilJobs], [anvilJobs],