From 12997086eb63dedc7222a44eee6b31be1e065e89 Mon Sep 17 00:00:00 2001 From: Anton Kastritskiy Date: Tue, 18 Jul 2023 03:52:34 -0700 Subject: [PATCH] Pretty navbar buttons Reviewed By: elboman Differential Revision: D47399039 fbshipit-source-id: c4cc9612a5a9299ebb07e34933b2fa6698f073e7 --- .../src/sandy-chrome/Navbar.tsx | 68 ++++++++++++++++--- 1 file changed, 57 insertions(+), 11 deletions(-) diff --git a/desktop/flipper-ui-core/src/sandy-chrome/Navbar.tsx b/desktop/flipper-ui-core/src/sandy-chrome/Navbar.tsx index 4b18d6532..3b9bc0dee 100644 --- a/desktop/flipper-ui-core/src/sandy-chrome/Navbar.tsx +++ b/desktop/flipper-ui-core/src/sandy-chrome/Navbar.tsx @@ -14,7 +14,19 @@ import config from '../fb-stubs/config'; import {isConnected, currentUser, logoutUser} from '../fb-stubs/user'; import {showLoginDialog} from '../chrome/fb-stubs/SignInSheet'; import {Avatar, Badge, Button, Popover, Tooltip} from 'antd'; -import {LoginOutlined, WarningOutlined} from '@ant-design/icons'; +import { + AppstoreAddOutlined, + BellOutlined, + CameraOutlined, + EllipsisOutlined, + FileExclamationOutlined, + LayoutOutlined, + LoginOutlined, + MedicineBoxOutlined, + QuestionCircleOutlined, + VideoCameraOutlined, + WarningOutlined, +} from '@ant-design/icons'; export function Navbar() { return ( @@ -28,24 +40,58 @@ export function Navbar() { background: theme.backgroundDefault, borderBottom: `solid 1px ${theme.dividerColor}`, }}> - - + + - - + + - - - - - - + + + + + + + {config.showLogin && } ); } +function NavbarButton({ + icon: Icon, + label, + selected, +}: { + icon: typeof LoginOutlined; + label: string; + selected?: boolean; +}) { + return ( + + ); +} + function LoginConnectivityButton() { const loggedIn = useValue(currentUser()); const user = useStore((state) => state.user);