diff --git a/services/web/frontend/js/features/ide-react/components/rail/rail-tab.tsx b/services/web/frontend/js/features/ide-react/components/rail/rail-tab.tsx index c3a677e625..474dafa079 100644 --- a/services/web/frontend/js/features/ide-react/components/rail/rail-tab.tsx +++ b/services/web/frontend/js/features/ide-react/components/rail/rail-tab.tsx @@ -6,7 +6,7 @@ import { NavLink } from 'react-bootstrap' import { RailElement } from '@/features/ide-react/util/rail-types' const RailTab = forwardRef< - HTMLAnchorElement, + HTMLButtonElement, { icon: RailElement['icon'] eventKey?: string @@ -14,7 +14,7 @@ const RailTab = forwardRef< indicator?: ReactElement title: string } & ComponentProps<'button'> ->(({ icon, eventKey, className, open, indicator, title, ...props }, ref) => { +>(({ icon, className, eventKey, open, indicator, title, ...props }, ref) => { return ( {indicator} diff --git a/services/web/frontend/js/features/ide-react/components/rail/rail.tsx b/services/web/frontend/js/features/ide-react/components/rail/rail.tsx index 53912d775e..8190701f23 100644 --- a/services/web/frontend/js/features/ide-react/components/rail/rail.tsx +++ b/services/web/frontend/js/features/ide-react/components/rail/rail.tsx @@ -52,8 +52,8 @@ const moduleRailPopovers = ( import: { default: { key: string - Component: FC<{ ref: RefObject }> - ref: RefObject + Component: FC<{ ref: RefObject }> + ref: RefObject hide: boolean | (() => boolean) } } @@ -77,7 +77,7 @@ export const RailLayout = () => { const isHistoryView = view === 'history' - const fileTreeRef = useRef(null) + const fileTreeRef = useRef(null) const settingsRef = useRef(null) useEventListener( diff --git a/services/web/frontend/js/features/ide-react/util/rail-types.ts b/services/web/frontend/js/features/ide-react/util/rail-types.ts index 335b15d4e1..8b54d1b210 100644 --- a/services/web/frontend/js/features/ide-react/util/rail-types.ts +++ b/services/web/frontend/js/features/ide-react/util/rail-types.ts @@ -14,6 +14,6 @@ export type RailElement = { hide?: boolean | (() => boolean) disabled?: boolean mountOnFirstLoad?: boolean - ref?: React.RefObject + ref?: React.RefObject tab?: typeof RailTab }