Skip to content

Commit

Permalink
update ActivationRequiredSelfHosted
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholas-codecov committed Dec 27, 2024
1 parent c9b4d13 commit 6d8af86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const queryClient = new QueryClient({
const queryClientV5 = new QueryClientV5({
defaultOptions: { queries: { retry: false } },
})

const wrapper: React.FC<React.PropsWithChildren> = ({ children }) => (
<QueryClientProviderV5 client={queryClientV5}>
<QueryClientProvider client={queryClient}>
Expand Down
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -67,10 +67,12 @@ interface URLParams {

function ActivationRequiredSelfHosted() {
const { provider } = useParams<URLParams>()
const { data } = useSelfHostedCurrentUser()
const { data: selfHostedSeats } = useSuspenseQueryV5(
SelfHostedSeatsConfigQueryOpts({ provider })
)
const { data } = useSuspenseQueryV5(
SelfHostedCurrentUserQueryOpts({ provider })
)

const hasSelfHostedSeats =
selfHostedSeats?.seatsUsed &&
Expand Down

0 comments on commit 6d8af86

Please sign in to comment.