Skip to content

Commit 5c78b06

Browse files
committed
Fix second place where Feedback menu item appears
Tool: gitpod/catfood.gitpod.cloud
1 parent 0d828f3 commit 5c78b06

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

components/dashboard/src/menu/Menu.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { Separator } from "../components/Separator";
1515
import PillMenuItem from "../components/PillMenuItem";
1616
import { PaymentContext } from "../payment-context";
1717
import FeedbackFormModal from "../feedback-form/FeedbackModal";
18-
import { isGitpodIo } from "../utils";
1918
import OrganizationSelector from "./OrganizationSelector";
2019
import { getAdminTabs } from "../admin/admin.routes";
2120
import 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>

0 commit comments

Comments
 (0)