|
1 | 1 | import React, { useContext } from 'react'; |
2 | 2 | import Select from 'components/common/Select/Select'; |
3 | 3 | import Logo from 'components/common/Logo/Logo'; |
4 | | -import Version from 'components/Version/Version'; |
5 | | -import GitHubIcon from 'components/common/Icons/GitHubIcon'; |
6 | | -import DiscordIcon from 'components/common/Icons/DiscordIcon'; |
7 | | -import AutoIcon from 'components/common/Icons/AutoIcon'; |
8 | 4 | import SunIcon from 'components/common/Icons/SunIcon'; |
9 | 5 | import MoonIcon from 'components/common/Icons/MoonIcon'; |
10 | 6 | import { ThemeModeContext } from 'components/contexts/ThemeModeContext'; |
11 | | -import ProductHuntIcon from 'components/common/Icons/ProductHuntIcon'; |
12 | 7 | import { Button } from 'components/common/Button/Button'; |
13 | 8 | import MenuIcon from 'components/common/Icons/MenuIcon'; |
14 | | - |
15 | 9 | import UserInfo from './UserInfo/UserInfo'; |
16 | 10 | import * as S from './NavBar.styled'; |
17 | 11 |
|
18 | 12 | interface Props { |
19 | 13 | onBurgerClick: () => void; |
20 | 14 | } |
21 | 15 |
|
22 | | -export type ThemeDropDownValue = 'auto_theme' | 'light_theme' | 'dark_theme'; |
| 16 | +export type ThemeDropDownValue = 'light_theme' | 'dark_theme'; |
23 | 17 |
|
24 | 18 | const options = [ |
25 | | - { |
26 | | - label: ( |
27 | | - <> |
28 | | - <AutoIcon /> |
29 | | - <div>Auto theme</div> |
30 | | - </> |
31 | | - ), |
32 | | - value: 'auto_theme', |
33 | | - }, |
34 | 19 | { |
35 | 20 | label: ( |
36 | 21 | <> |
@@ -64,36 +49,19 @@ const NavBar: React.FC<Props> = ({ onBurgerClick }) => { |
64 | 49 |
|
65 | 50 | <S.Hyperlink to="/"> |
66 | 51 | <Logo /> |
67 | | - kafbat UI |
| 52 | + Kafka by IDFcTS |
68 | 53 | </S.Hyperlink> |
69 | 54 |
|
70 | | - <S.NavbarItem> |
71 | | - <Version /> |
72 | | - </S.NavbarItem> |
73 | 55 | </S.NavbarBrand> |
74 | 56 | </S.NavbarBrand> |
| 57 | + <S.NavbarVersion>Version: v1.1.4</S.NavbarVersion> |
75 | 58 | <S.NavbarSocial> |
76 | 59 | <Select |
77 | 60 | options={options} |
78 | 61 | value={themeMode} |
79 | 62 | onChange={setThemeMode} |
80 | 63 | isThemeMode |
81 | 64 | /> |
82 | | - <S.SocialLink href="https://github.com/kafbat/kafka-ui" target="_blank"> |
83 | | - <GitHubIcon /> |
84 | | - </S.SocialLink> |
85 | | - <S.SocialLink |
86 | | - href="https://discord.com/invite/4DWzD7pGE5" |
87 | | - target="_blank" |
88 | | - > |
89 | | - <DiscordIcon /> |
90 | | - </S.SocialLink> |
91 | | - <S.SocialLink |
92 | | - href="https://producthunt.com/products/ui-for-apache-kafka" |
93 | | - target="_blank" |
94 | | - > |
95 | | - <ProductHuntIcon /> |
96 | | - </S.SocialLink> |
97 | 65 | <UserInfo /> |
98 | 66 | </S.NavbarSocial> |
99 | 67 | </S.Navbar> |
|
0 commit comments