diff --git a/desktop/flipper-ui-core/src/sandy-chrome/Navbar.tsx b/desktop/flipper-ui-core/src/sandy-chrome/Navbar.tsx
index e0df26fa3..fe6f53b80 100644
--- a/desktop/flipper-ui-core/src/sandy-chrome/Navbar.tsx
+++ b/desktop/flipper-ui-core/src/sandy-chrome/Navbar.tsx
@@ -11,7 +11,6 @@ import {
Dialog,
Layout,
NUX,
- styled,
theme,
useMemoize,
useTrackedCallback,
@@ -19,13 +18,7 @@ import {
withTrackingScope,
} from 'flipper-plugin';
import {getRenderHostInstance} from 'flipper-frontend-core';
-import React, {
- cloneElement,
- useCallback,
- useEffect,
- useMemo,
- useState,
-} from 'react';
+import React, {useCallback, useEffect, useMemo, useState} from 'react';
import {useDispatch, useStore} from '../utils/useStore';
import config from '../fb-stubs/config';
import {isConnected, currentUser, logoutUser} from '../fb-stubs/user';
@@ -479,83 +472,12 @@ function LoginConnectivityButton() {
) : (
- <>
- }
- title="Log In"
- onClick={() => showLoginDialog()}
- />
- >
- );
-}
-
-const LeftRailButtonElem = styled(Button)<{kind?: 'small'}>(({kind}) => ({
- width: kind === 'small' ? 32 : 36,
- height: kind === 'small' ? 32 : 36,
- border: 'none',
- boxShadow: 'none',
-}));
-LeftRailButtonElem.displayName = 'LeftRailButtonElem';
-
-export function LeftRailButton({
- icon,
- small,
- selected,
- toggled,
- count,
- title,
- onClick,
- disabled,
-}: {
- icon?: React.ReactElement;
- small?: boolean;
- toggled?: boolean;
- selected?: boolean;
- disabled?: boolean;
- count?: number | true;
- title?: string;
- onClick?: React.MouseEventHandler;
-}) {
- const iconElement =
- icon && cloneElement(icon, {style: {fontSize: small ? 16 : 24}});
-
- let res = (
-
);
-
- if (count !== undefined) {
- res =
- count === true ? (
-
- {res}
-
- ) : (
-
- {res}
-
- );
- }
-
- if (title) {
- res = (
-
- {res}
-
- );
- }
-
- return res;
}
const menu = css`