|
@@ -6,7 +6,7 @@ import { NavLink } from 'react-bootstrap'
|
|
|
import { RailElement } from '@/features/ide-react/util/rail-types'
|
|
import { RailElement } from '@/features/ide-react/util/rail-types'
|
|
|
|
|
|
|
|
const RailTab = forwardRef<
|
|
const RailTab = forwardRef<
|
|
|
- HTMLAnchorElement,
|
|
|
|
|
|
|
+ HTMLButtonElement,
|
|
|
{
|
|
{
|
|
|
icon: RailElement['icon']
|
|
icon: RailElement['icon']
|
|
|
eventKey?: string
|
|
eventKey?: string
|
|
@@ -14,7 +14,7 @@ const RailTab = forwardRef<
|
|
|
indicator?: ReactElement
|
|
indicator?: ReactElement
|
|
|
title: string
|
|
title: string
|
|
|
} & ComponentProps<'button'>
|
|
} & ComponentProps<'button'>
|
|
|
->(({ icon, eventKey, className, open, indicator, title, ...props }, ref) => {
|
|
|
|
|
|
|
+>(({ icon, className, eventKey, open, indicator, title, ...props }, ref) => {
|
|
|
return (
|
|
return (
|
|
|
<OLTooltip
|
|
<OLTooltip
|
|
|
id={`rail-tab-tooltip-${eventKey}`}
|
|
id={`rail-tab-tooltip-${eventKey}`}
|
|
@@ -28,6 +28,7 @@ const RailTab = forwardRef<
|
|
|
className={classNames('ide-rail-tab-link', className, {
|
|
className={classNames('ide-rail-tab-link', className, {
|
|
|
'open-rail': open,
|
|
'open-rail': open,
|
|
|
})}
|
|
})}
|
|
|
|
|
+ as="button"
|
|
|
>
|
|
>
|
|
|
<RailTabIcon icon={icon} title={title} open={open} />
|
|
<RailTabIcon icon={icon} title={title} open={open} />
|
|
|
{indicator}
|
|
{indicator}
|