This is an automated email from the ASF dual-hosted git repository. klesh pushed a commit to branch kw-avoid-logo-being-selected in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit f276644f20931e0f8bd14210572873cdd82e6f76 Author: Klesh Wong <[email protected]> AuthorDate: Fri Nov 10 16:19:11 2023 +0800 refactor: no need to hardcode dashboard url --- config-ui/src/routes/layout/layout.tsx | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/config-ui/src/routes/layout/layout.tsx b/config-ui/src/routes/layout/layout.tsx index d1b2bbc39..3e64396fb 100644 --- a/config-ui/src/routes/layout/layout.tsx +++ b/config-ui/src/routes/layout/layout.tsx @@ -72,7 +72,7 @@ export const Layout = () => { }; const getGrafanaUrl = () => { - const suffix = '/d/lCO8w-pVk/homepage?orgId=1'; + const suffix = '/'; const { protocol, hostname } = window.location; return import.meta.env.DEV ? `${protocol}//${hostname}:3002${suffix}` : `/grafana${suffix}`; @@ -83,7 +83,7 @@ export const Layout = () => { <TipsContextConsumer> {({ tips, setTips }) => ( <S.Wrapper> - <S.Sider> + <S.Sider style={{userSelect: 'none'}}> <Logo /> <Menu className="menu"> {menu.map((it) => { @@ -141,25 +141,6 @@ export const Layout = () => { <img src={APIIcon} alt="api" /> <span>API</span> </ExternalLink> - <Navbar.Divider /> - <a - href="https://github.com/apache/incubator-devlake" - rel="noreferrer" - target="_blank" - className="navIconLink" - > - <img src={GitHubIcon} alt="github" /> - <span>GitHub</span> - </a> - <Navbar.Divider /> - <a - href="https://join.slack.com/t/devlake-io/shared_invite/zt-26ulybksw-IDrJYuqY1FrdjlMMJhs53Q" - rel="noreferrer" - target="_blank" - > - <img src={SlackIcon} alt="slack" /> - <span>Slack</span> - </a> </Navbar.Group> </S.Header> <S.Inner>
