fix(ui): use Tabs instead of SegmentedTabs for content navigation
Some checks failed
CI / cleanup-branch (push) Has been skipped
CI / build (push) Successful in 1m4s
CI / docker (push) Has started running
CI / deploy (push) Has been cancelled
CI / deploy-feature (push) Has been cancelled

This commit is contained in:
hsiegeln
2026-03-28 14:27:28 +01:00
parent d63a9f8ce7
commit 699ef86f8f

View File

@@ -1,11 +1,11 @@
import { SegmentedTabs } from '@cameleer/design-system'; import { Tabs } from '@cameleer/design-system';
import type { TabKey } from '../hooks/useScope'; import type { TabKey } from '../hooks/useScope';
import styles from './ContentTabs.module.css'; import styles from './ContentTabs.module.css';
const TABS = [ const TABS = [
{ label: 'Exchanges', value: 'exchanges' as const }, { label: 'Exchanges', value: 'exchanges' },
{ label: 'Dashboard', value: 'dashboard' as const }, { label: 'Dashboard', value: 'dashboard' },
{ label: 'Runtime', value: 'runtime' as const }, { label: 'Runtime', value: 'runtime' },
]; ];
interface ContentTabsProps { interface ContentTabsProps {
@@ -16,7 +16,7 @@ interface ContentTabsProps {
export function ContentTabs({ active, onChange }: ContentTabsProps) { export function ContentTabs({ active, onChange }: ContentTabsProps) {
return ( return (
<div className={styles.wrapper}> <div className={styles.wrapper}>
<SegmentedTabs <Tabs
tabs={TABS} tabs={TABS}
active={active} active={active}
onChange={(v) => onChange(v as TabKey)} onChange={(v) => onChange(v as TabKey)}