Skip to content

Commit 5a37c80

Browse files
committed
Move Gitpod icon away from the navigation
1 parent 21c16d2 commit 5a37c80

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

components/dashboard/src/components/ItemsList.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,18 @@
55
*/
66

77
import ContextMenu, { ContextMenuEntry } from "./ContextMenu";
8+
import { Link } from "react-router-dom";
9+
import gitpodIcon from "../icons/gitpod.svg";
810

911
export function ItemsList(props: { children?: React.ReactNode; className?: string }) {
10-
return <div className={`flex flex-col space-y-2 ${props.className || ""}`}>{props.children}</div>;
12+
return (
13+
<>
14+
<div className={`flex flex-col space-y-2 ${props.className || ""}`}>{props.children}</div>
15+
<Link to="/" className="mx-auto items-center pt-24">
16+
<img src={gitpodIcon} className="h-6 filter-grayscale" alt="Gitpod's logo" />
17+
</Link>
18+
</>
19+
);
1120
}
1221

1322
export function Item(props: { children?: React.ReactNode; className?: string; header?: boolean; solid?: boolean }) {

components/dashboard/src/menu/Menu.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66

77
import { User } from "@gitpod/gitpod-protocol";
88
import { FC, useCallback, useContext, useEffect, useMemo, useState } from "react";
9-
import { Link } from "react-router-dom";
109
import { useLocation } from "react-router";
1110
import { Location } from "history";
1211
import { countries } from "countries-list";
13-
import gitpodIcon from "../icons/gitpod.svg";
1412
import { getGitpodService, gitpodHostUrl } from "../service/service";
1513
import { useCurrentUser } from "../user-context";
1614
import ContextMenu, { ContextMenuEntry } from "../components/ContextMenu";
@@ -73,10 +71,6 @@ export default function Menu() {
7371
<header className="app-container flex flex-col pt-4" data-analytics='{"button_type":"menu"}'>
7472
<div className="flex justify-between h-10 mb-3 w-full">
7573
<div className="flex items-center">
76-
{/* hidden on smaller screens */}
77-
<Link to="/" className="hidden md:inline pr-3 w-10">
78-
<img src={gitpodIcon} className="h-6" alt="Gitpod's logo" />
79-
</Link>
8074
<OrganizationSelector />
8175
{/* hidden on smaller screens (in it's own menu below on smaller screens) */}
8276
<div className="hidden md:block pl-2">

0 commit comments

Comments
 (0)