File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
components/dashboard/src/workspaces Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ import { User } from "@gitpod/gitpod-protocol";
18
18
import { useLocation } from "react-router" ;
19
19
import { StartWorkspaceModalContext , StartWorkspaceModalKeyBinding } from "./start-workspace-modal-context" ;
20
20
import SelectIDEModal from "../settings/SelectIDEModal" ;
21
- import { getExperimentsClient } from "../experiments/client" ;
22
21
23
22
export interface WorkspacesProps { }
24
23
@@ -37,7 +36,6 @@ export default function () {
37
36
const [ inactiveWorkspaces , setInactiveWorkspaces ] = useState < WorkspaceInfo [ ] > ( [ ] ) ;
38
37
const [ workspaceModel , setWorkspaceModel ] = useState < WorkspaceModel > ( ) ;
39
38
const { setIsStartWorkspaceModalVisible } = useContext ( StartWorkspaceModalContext ) ;
40
- const [ isExperimentEnabled , setExperiment ] = useState < boolean > ( false ) ;
41
39
42
40
useEffect ( ( ) => {
43
41
( async ( ) => {
@@ -47,17 +45,6 @@ export default function () {
47
45
} , [ teams , location ] ) ;
48
46
49
47
const isOnboardingUser = user && User . isOnboardingUser ( user ) ;
50
- useEffect ( ( ) => {
51
- ( async ( ) => {
52
- if ( teams && teams . length > 0 ) {
53
- const isEnabled = await getExperimentsClient ( ) . getValueAsync ( "isMyFirstFeatureEnabled" , false , {
54
- teamName : teams [ 0 ] ?. name ,
55
- } ) ;
56
- setExperiment ( isEnabled ) ;
57
- }
58
- } ) ( ) ;
59
- } , [ teams ] ) ;
60
- console . log ( "Is experiment enabled? " , isExperimentEnabled ) ;
61
48
62
49
return (
63
50
< >
You can’t perform that action at this time.
0 commit comments