@@ -7,12 +7,10 @@ import {
7
7
} from "react" ;
8
8
import { useQuery } from "react-query" ;
9
9
import { appearance } from "api/queries/appearance" ;
10
- import { buildInfo } from "api/queries/buildInfo" ;
11
10
import { entitlements } from "api/queries/entitlements" ;
12
11
import { experiments } from "api/queries/experiments" ;
13
12
import type {
14
13
AppearanceConfig ,
15
- BuildInfoResponse ,
16
14
Entitlements ,
17
15
Experiments ,
18
16
} from "api/typesGenerated" ;
@@ -27,7 +25,6 @@ interface Appearance {
27
25
}
28
26
29
27
export interface DashboardValue {
30
- buildInfo : BuildInfoResponse ;
31
28
entitlements : Entitlements ;
32
29
experiments : Experiments ;
33
30
appearance : Appearance ;
@@ -38,16 +35,12 @@ export const DashboardContext = createContext<DashboardValue | undefined>(
38
35
) ;
39
36
40
37
export const DashboardProvider : FC < PropsWithChildren > = ( { children } ) => {
41
- const buildInfoQuery = useQuery ( buildInfo ( ) ) ;
42
38
const entitlementsQuery = useQuery ( entitlements ( ) ) ;
43
39
const experimentsQuery = useQuery ( experiments ( ) ) ;
44
40
const appearanceQuery = useQuery ( appearance ( ) ) ;
45
41
46
42
const isLoading =
47
- ! buildInfoQuery . data ||
48
- ! entitlementsQuery . data ||
49
- ! appearanceQuery . data ||
50
- ! experimentsQuery . data ;
43
+ ! entitlementsQuery . data || ! appearanceQuery . data || ! experimentsQuery . data ;
51
44
52
45
const [ configPreview , setConfigPreview ] = useState < AppearanceConfig > ( ) ;
53
46
@@ -84,7 +77,6 @@ export const DashboardProvider: FC<PropsWithChildren> = ({ children }) => {
84
77
return (
85
78
< DashboardContext . Provider
86
79
value = { {
87
- buildInfo : buildInfoQuery . data ,
88
80
entitlements : entitlementsQuery . data ,
89
81
experiments : experimentsQuery . data ,
90
82
appearance : {
0 commit comments