Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions web/app/components/base/tab-slider-new/index.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import type { FC } from 'react'
import type { ReactNode } from 'react'
import { cn } from '@langgenius/dify-ui/cn'

type Option = {
value: string
text: string
icon?: React.ReactNode
icon?: ReactNode
}
type TabSliderProps = {
className?: string
value: string
onChange: (v: string) => void
options: Option[]
}
const TabSliderNew: FC<TabSliderProps> = ({ className, value, onChange, options }) => {
function TabSliderNew({ className, value, onChange, options }: TabSliderProps) {
return (
<div data-testid="tab-slider-new" className={cn(className, 'relative flex')}>
{options.map((option) => (
Expand Down