From 6d8af8629f50b5ff60baa77a7bc0432671d4418b Mon Sep 17 00:00:00 2001 From: nicholas-codecov Date: Fri, 13 Dec 2024 13:25:04 -0500 Subject: [PATCH] update ActivationRequiredSelfHosted --- .../ActivationRequiredSelfHosted.test.tsx | 1 - .../ActivationRequiredSelfHosted.tsx | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pages/RepoPage/CoverageOnboarding/ActivationBanner/ActivationRequiredSelfHosted/ActivationRequiredSelfHosted.test.tsx b/src/pages/RepoPage/CoverageOnboarding/ActivationBanner/ActivationRequiredSelfHosted/ActivationRequiredSelfHosted.test.tsx index 93640024e0..4396d0a270 100644 --- a/src/pages/RepoPage/CoverageOnboarding/ActivationBanner/ActivationRequiredSelfHosted/ActivationRequiredSelfHosted.test.tsx +++ b/src/pages/RepoPage/CoverageOnboarding/ActivationBanner/ActivationRequiredSelfHosted/ActivationRequiredSelfHosted.test.tsx @@ -17,7 +17,6 @@ const queryClient = new QueryClient({ const queryClientV5 = new QueryClientV5({ defaultOptions: { queries: { retry: false } }, }) - const wrapper: React.FC = ({ children }) => ( diff --git a/src/pages/RepoPage/CoverageOnboarding/ActivationBanner/ActivationRequiredSelfHosted/ActivationRequiredSelfHosted.tsx b/src/pages/RepoPage/CoverageOnboarding/ActivationBanner/ActivationRequiredSelfHosted/ActivationRequiredSelfHosted.tsx index b9f4ee3a80..10b8b6a291 100644 --- a/src/pages/RepoPage/CoverageOnboarding/ActivationBanner/ActivationRequiredSelfHosted/ActivationRequiredSelfHosted.tsx +++ b/src/pages/RepoPage/CoverageOnboarding/ActivationBanner/ActivationRequiredSelfHosted/ActivationRequiredSelfHosted.tsx @@ -1,7 +1,7 @@ import { useSuspenseQuery as useSuspenseQueryV5 } from '@tanstack/react-queryV5' import { useParams } from 'react-router' -import { useSelfHostedCurrentUser } from 'services/selfHosted' +import { SelfHostedCurrentUserQueryOpts } from 'services/selfHosted/SelfHostedCurrentUserQueryOpts' import { SelfHostedSeatsConfigQueryOpts } from 'services/selfHosted/SelfHostedSeatsConfigQueryOpts' import A from 'ui/A' import Banner from 'ui/Banner' @@ -67,10 +67,12 @@ interface URLParams { function ActivationRequiredSelfHosted() { const { provider } = useParams() - const { data } = useSelfHostedCurrentUser() const { data: selfHostedSeats } = useSuspenseQueryV5( SelfHostedSeatsConfigQueryOpts({ provider }) ) + const { data } = useSuspenseQueryV5( + SelfHostedCurrentUserQueryOpts({ provider }) + ) const hasSelfHostedSeats = selfHostedSeats?.seatsUsed &&