Skip to content

Commit

Permalink
Add icon to visualize leaving current tab
Browse files Browse the repository at this point in the history
  • Loading branch information
tschumpr committed Jul 18, 2024
1 parent 8f0bc3e commit 779c060
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Geopilot.Frontend/src/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
List,
ListItem,
ListItemButton,
ListItemIcon,
ListItemText,
Toolbar,
Typography,
Expand All @@ -22,6 +23,7 @@ import { AdminTemplate } from "./auth/AdminTemplate.js";
import { useLocation, useNavigate } from "react-router-dom";
import { ClientSettings } from "./AppInterfaces";
import { FC, useState } from "react";
import OpenInNewIcon from "@mui/icons-material/OpenInNew";

interface HeaderProps {
clientSettings: ClientSettings;
Expand Down Expand Up @@ -138,6 +140,9 @@ export const Header: FC<HeaderProps> = ({ clientSettings, hasDrawerToggle, handl
window.open("/browser", "_blank");
}}>
<ListItemText primary={t("stacBrowser").toUpperCase()} />
<ListItemIcon>
<OpenInNewIcon fontSize="small" />
</ListItemIcon>
</ListItemButton>
</ListItem>
</AdminTemplate>
Expand Down

0 comments on commit 779c060

Please sign in to comment.