Skip to content

Commit

Permalink
feat: Removed Sidebar logo and unwanted tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
omarelmoghazySmartlyticsGH committed Mar 22, 2024
1 parent 11b5f54 commit 6f5faf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
7 changes: 1 addition & 6 deletions airbyte-webapp/src/views/layout/MainView/MainView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { ResourceNotFoundErrorBoundary } from "views/common/ResourceNotFoundErro
import { StartOverErrorView } from "views/common/StartOverErrorView";

import styles from "./MainView.module.scss";
import { HelpDropdown } from "../SideBar/components/HelpDropdown";
import { SideBar } from "../SideBar/SideBar";

const MainView: React.FC<React.PropsWithChildren> = (props) => {
Expand All @@ -20,11 +19,7 @@ const MainView: React.FC<React.PropsWithChildren> = (props) => {

return (
<FlexContainer className={classNames(styles.mainViewContainer)} gap="none">
<SideBar
workspaceFetcher={useListWorkspacesInfinite}
bottomSlot={<HelpDropdown />}
settingHighlight={hasNewVersions}
/>
<SideBar workspaceFetcher={useListWorkspacesInfinite} settingHighlight={hasNewVersions} />
<div className={styles.content}>
<ResourceNotFoundErrorBoundary errorComponent={<StartOverErrorView />} trackError={trackError}>
<React.Suspense fallback={<LoadingPage />}>{props.children}</React.Suspense>
Expand Down
21 changes: 1 addition & 20 deletions airbyte-webapp/src/views/layout/SideBar/SideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { FeatureItem, IfFeatureEnabled } from "core/services/features";
import { CloudRoutes } from "packages/cloud/cloudRoutePaths";
import { RoutePaths } from "pages/routePaths";

import { AirbyteHomeLink } from "./AirbyteHomeLink";
import { MenuContent } from "./components/MenuContent";
import { NavDropdown } from "./components/NavDropdown";
import { NavItem } from "./components/NavItem";
Expand All @@ -26,16 +25,11 @@ interface SideBarProps {
settingHighlight?: boolean;
}

export const SideBar: React.FC<PropsWithChildren<SideBarProps>> = ({
workspaceFetcher,
bottomSlot,
settingHighlight,
}) => {
export const SideBar: React.FC<PropsWithChildren<SideBarProps>> = ({ workspaceFetcher, bottomSlot }) => {
const { logout, user } = useAuthService();
const { formatMessage } = useIntl();
return (
<nav className={classNames(styles.sidebar)}>
<AirbyteHomeLink />
<IfFeatureEnabled feature={FeatureItem.ShowAdminWarningInWorkspace}>
<AdminWorkspaceWarning />
</IfFeatureEnabled>
Expand All @@ -62,13 +56,6 @@ export const SideBar: React.FC<PropsWithChildren<SideBarProps>> = ({
testId="destinationsLink"
to={RoutePaths.Destination}
/>
<NavItem
label={<FormattedMessage id="sidebar.builder" />}
icon="wrench"
testId="builderLink"
to={RoutePaths.ConnectorBuilder}
withBadge="beta"
/>
<IfFeatureEnabled feature={FeatureItem.Billing}>
<NavItem
icon="credits"
Expand All @@ -77,12 +64,6 @@ export const SideBar: React.FC<PropsWithChildren<SideBarProps>> = ({
testId="creditsButton"
/>
</IfFeatureEnabled>
<NavItem
label={<FormattedMessage id="sidebar.settings" />}
icon="gear"
to={RoutePaths.Settings}
withNotification={settingHighlight}
/>
</MenuContent>
<MenuContent>
{bottomSlot}
Expand Down

0 comments on commit 6f5faf4

Please sign in to comment.