From 61b75b17e7458939057551deea496a53a1f3deb8 Mon Sep 17 00:00:00 2001 From: Gina A <70909035+gndz07@users.noreply.github.com> Date: Mon, 13 May 2024 10:36:04 +0200 Subject: [PATCH] feat: remove mesh from main navigation --- src/components/nav/DrawerNav.tsx | 1 - src/components/nav/MainNav.tsx | 36 ++++---------------------------- src/images/TraefikMeshLogo.tsx | 22 ------------------- src/images/index.tsx | 2 -- 4 files changed, 4 insertions(+), 57 deletions(-) delete mode 100644 src/images/TraefikMeshLogo.tsx diff --git a/src/components/nav/DrawerNav.tsx b/src/components/nav/DrawerNav.tsx index 5d8f4d4..9101aec 100644 --- a/src/components/nav/DrawerNav.tsx +++ b/src/components/nav/DrawerNav.tsx @@ -45,7 +45,6 @@ const DrawerNav = ({ isDrawerOpen }: Props) => {
Traefik Proxy - Traefik Mesh
diff --git a/src/components/nav/MainNav.tsx b/src/components/nav/MainNav.tsx index a791299..17c6d6f 100644 --- a/src/components/nav/MainNav.tsx +++ b/src/components/nav/MainNav.tsx @@ -1,7 +1,7 @@ import React from 'react' import styled from 'styled-components' -import { Flex, Grid, Heading } from '@containous/faency' +import { Box, Flex, Grid, Heading } from '@containous/faency' import NavItem from './NavItem' import Product from './Product' import * as MenuColumn from './MenuColumn' @@ -11,7 +11,6 @@ import { TraefikHubLogo, TraefikEnterpriseLogo, TraefikProxyLogo, - TraefikMeshLogo, RocketIcon, GithubIcon, DocsIcon, @@ -32,7 +31,7 @@ const Wrapper = styled(Flex)` } ` -const MainNav: React.FC = () => { +const MainNav = () => { const lastPost = useGetLastPost('blog') const lastResource = useGetLastPost('resources') @@ -104,7 +103,7 @@ const MainNav: React.FC = () => { - + { }, ]} /> - } - url="https://traefik.io/traefik-mesh/" - color="#be46dd" - bgColor="#f4f5f6" - links={[ - { - title: 'GitHub', - url: 'https://github.com/traefik/mesh', - external: true, - icon: + @@ -207,11 +184,6 @@ const MainNav: React.FC = () => { - { - return ( - - - - - - - - - - - - ) -} - -export default TraefikMeshLogo diff --git a/src/images/index.tsx b/src/images/index.tsx index a4a1d44..5711154 100644 --- a/src/images/index.tsx +++ b/src/images/index.tsx @@ -1,7 +1,6 @@ import TraefikHubLogo from 'images/TraefikHubLogo' import TraefikEnterpriseLogo from 'images/TraefikEnterpriseLogo' import TraefikProxyLogo from 'images/TraefikProxyLogo' -import TraefikMeshLogo from 'images/TraefikMeshLogo' import RocketIcon from 'images/RocketIcon' import GithubIcon from 'images/GithubIcon' import DocsIcon from 'images/DocsIcon' @@ -17,7 +16,6 @@ export { TraefikHubLogo, TraefikEnterpriseLogo, TraefikProxyLogo, - TraefikMeshLogo, RocketIcon, GithubIcon, DocsIcon,