refactor(ui): use product primitives for settings tabs
This commit is contained in:
parent
f2216ad278
commit
6e14f4290c
@ -5,6 +5,7 @@ import { SettingsTab } from '../tabs/SettingsTab';
|
|||||||
import { AdminTab } from '../tabs/AdminTab';
|
import { AdminTab } from '../tabs/AdminTab';
|
||||||
import { ConfigTab } from '../tabs/ConfigTab';
|
import { ConfigTab } from '../tabs/ConfigTab';
|
||||||
import { PageHeader } from '../components/ui/page-header';
|
import { PageHeader } from '../components/ui/page-header';
|
||||||
|
import { Button } from '../components/ui/Primitives';
|
||||||
|
|
||||||
type SettingsSection = 'Account' | 'Bot Config' | 'Admin Panel';
|
type SettingsSection = 'Account' | 'Bot Config' | 'Admin Panel';
|
||||||
|
|
||||||
@ -42,14 +43,17 @@ export function SettingsView() {
|
|||||||
|
|
||||||
<div className="tab-strip" style={{ marginBottom: 24 }}>
|
<div className="tab-strip" style={{ marginBottom: 24 }}>
|
||||||
{sections.map(s => (
|
{sections.map(s => (
|
||||||
<button
|
<Button
|
||||||
key={s}
|
key={s}
|
||||||
|
type="button"
|
||||||
onClick={() => handleSectionChange(s)}
|
onClick={() => handleSectionChange(s)}
|
||||||
|
variant="ghost"
|
||||||
|
size="sm"
|
||||||
className="tab-button"
|
className="tab-button"
|
||||||
data-active={section === s}
|
data-active={section === s}
|
||||||
>
|
>
|
||||||
{s}
|
{s}
|
||||||
</button>
|
</Button>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user