diff --git a/app/client/packages/design-system/widgets/src/components/Sidebar/src/Sidebar.tsx b/app/client/packages/design-system/widgets/src/components/Sidebar/src/Sidebar.tsx index 60b628f8daec..820de64e50f3 100644 --- a/app/client/packages/design-system/widgets/src/components/Sidebar/src/Sidebar.tsx +++ b/app/client/packages/design-system/widgets/src/components/Sidebar/src/Sidebar.tsx @@ -3,7 +3,6 @@ import * as React from "react"; import { type Ref, useRef, useState } from "react"; import { CSSTransition } from "react-transition-group"; -import { Sheet } from "../../Sheet"; import styles from "./styles.module.css"; import { useSidebar } from "./use-sidebar"; import type { SidebarProps } from "./types"; @@ -19,13 +18,12 @@ const _Sidebar = (props: SidebarProps, ref: Ref) => { onEntered: onEnteredProp, onExit: onExitProp, onExited: onExitedProp, - side = "start", title, variant = "sidebar", ...rest } = props; const [isAnimating, setIsAnimating] = useState(false); - const { isMobile, setState, state } = useSidebar(); + const { side, state } = useSidebar(); const sidebarRef = useRef(); const onEnter = () => { @@ -64,22 +62,6 @@ const _Sidebar = (props: SidebarProps, ref: Ref) => { ); } - if (Boolean(isMobile)) { - return ( - setState(isOpen ? "expanded" : "collapsed")} - position={side} - > - {content} - - ); - } - return ( - {Boolean(title) && {title}} + {Boolean(title) && ( + + {title} + + )} {!isMobile && (