File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import { Separator } from "../components/Separator";
1515import PillMenuItem from "../components/PillMenuItem" ;
1616import { PaymentContext } from "../payment-context" ;
1717import FeedbackFormModal from "../feedback-form/FeedbackModal" ;
18- import { isGitpodIo } from "../utils" ;
1918import OrganizationSelector from "./OrganizationSelector" ;
2019import { getAdminTabs } from "../admin/admin.routes" ;
2120import classNames from "classnames" ;
@@ -36,6 +35,9 @@ export default function Menu() {
3635 const { setCurrency } = useContext ( PaymentContext ) ;
3736 const [ isFeedbackFormVisible , setFeedbackFormVisible ] = useState < boolean > ( false ) ;
3837
38+ const { data : installationConfig , isLoading : isInstallationConfigLoading } = useInstallationConfiguration ( ) ;
39+ const isGitpodIo = isInstallationConfigLoading ? false : ! installationConfig ?. isDedicatedInstallation ;
40+
3941 useEffect ( ( ) => {
4042 const { server } = getGitpodService ( ) ;
4143 server . getClientRegion ( ) . then ( ( v ) => {
@@ -96,7 +98,7 @@ export default function Menu() {
9698 />
9799 </ li >
98100 ) }
99- { isGitpodIo ( ) && (
101+ { isGitpodIo && (
100102 < li className = "cursor-pointer" >
101103 < PillMenuItem name = "Feedback" onClick = { handleFeedbackFormClick } />
102104 </ li >
You can’t perform that action at this time.
0 commit comments