Skip to content

Commit c267ce3

Browse files
committed
[teams] make Gitpod icon team-aware
1 parent 58a9e39 commit c267ce3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

components/dashboard/src/Menu.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,18 @@ export default function Menu() {
208208
)
209209
}
210210

211+
const gitpodIconUrl = () => {
212+
if (team) {
213+
return `/t/${team.slug}`;
214+
}
215+
return "/"
216+
}
217+
211218
return <>
212219
<header className={`lg:px-28 px-10 flex flex-col pt-4 space-y-4 ${isMinimalUI || !!prebuildId ? 'pb-4' : ''}`} data-analytics='{"button_type":"menu"}'>
213220
<div className="flex h-10">
214221
<div className="flex justify-between items-center pr-3">
215-
<Link to="/">
222+
<Link to={gitpodIconUrl()}>
216223
<img src={gitpodIcon} className="h-6" />
217224
</Link>
218225
{!isMinimalUI && <div className="ml-2 text-base">

0 commit comments

Comments
 (0)